Import private keys into Java keystore using keytool

You can use keytool to import private keys and certificates from one keystore to another keystroe.

keytool
-importkeystore \
-deststorepass [new_keystore_pass] \
-destkeypass [new_key_pass] \
-destkeystore [keystore.jks] \
-srckeystore [keystore.p12] \
-srcstoretype PKCS12 \
-srcstorepass [pass_used_in_p12_keystore] \
-alias [alias_used_in_p12_keystore]


Published on  and maintained in Cascade CMS.