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
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