To create a 1024-bit RSA key: : Keytool « Security « Java






To create a 1024-bit RSA key:

   

keytool -genkey -keyalg RSA -keysize 1024 -alias alias -keystore .keystore

   
    
    
  








Related examples in the same category

1.generates a 1024-bit Digital Signature Algorithm (DSA) key pair.
2.Export certificate in binary using keytool, if the certificate is in the key store
3.Export certificate in text format using keytool, if the certificate is in the key store
4.Creating a New Key Pair and Self-Signed Certificate Using keytool
5.using keytool to import a certificate into a keystore
6.Java Key Tools