Use the following command in importing a pkcs12 keystore to Java keystore:
The keytool is normally found in $JAVA_HOME/jre/bin (i.e. the $JAVA_HOME variable is where you've installed JDK).
keytool -importkeystore -v -srckeystore <SRC_KEYSTORE_FILE> -srcstoretype pkcs12 -destkeystore <DEST_KEYSTORE_FILE> -deststoretype JKS -storepass <KEYSTORE_PASSWORD>
Token | Description |
SRC_KEYSTORE_FILE | The source keystore file (i.e. normally with the extension pfx) of type pkcs12. |
DEST_KEYSTORE_FILE | The destination keystore file (i.e. normally with the extension jks) of type jks. |
KEYSTORE_PASSWORD | The password for accessing the DEST_KEYSTORE_FILE |
Leave a Reply