using keytool to import a certificate into a keystore : Keytool « Security « Java






using keytool to import a certificate into a keystore

   

keytool -storepass my-keystore-password -alias myalias -import -file infilename.cer

   
    
    
  








Related examples in the same category

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