How to convert a PKCS12 (.p12) keystore to a JKS (.jks) keystore, please run the following command:
How to convert a PKCS12 file to a JKS keystore
To convert a PKCS12 (.p12) keystore to a JKS (.jks) keystore, please run the following command:
keytool -importkeystore -srckeystore key.p12 -srcstoretype pkcs12 -destkeystore key.jks -deststoretype jks
where key.p12 is the name of the p12 file and key.jks is the name of the jks keystore to be created.
NOTE: This command is supported on JDK / JRE keytool versions 1.6 and greater.