Friday 4 September 2015

SSL Certificate Conversion - Java Keystore(.jks) into .p12 format

Below Keytool command can be used to convert .jks certificate format into .pem format. Where myapp.jks is your source file & myapp.p12 is your destination file.

keytool -importkeystore -srckeystore myapp.jks -destkeystore myapp.p12 -srcalias myapp-dev -srcstoretype jks -deststoretype pkcs12

If your certificate is password protected you can use below command for conversion:

keytool -importkeystore -srckeystore myapp.jks -destkeystore myapp.p12 -srcalias myapp-dev -srcstoretype jks -deststoretype pkcs12 -srcstorepass pass123 -deststorepass pass123

No comments:

Post a Comment