Skip to content

Instantly share code, notes, and snippets.

@kapilraj2436
Created June 22, 2016 06:38
Show Gist options
  • Save kapilraj2436/9a54b5945b47a3f0dac8fab7259ed0ec to your computer and use it in GitHub Desktop.
Save kapilraj2436/9a54b5945b47a3f0dac8fab7259ed0ec to your computer and use it in GitHub Desktop.
1. Convert our ".jks" file to ".p12" (PKCS12 key store format):
keytool -importkeystore -srckeystore oldkeystore.jks -destkeystore newkeystore.p12 -deststoretype PKCS12
1.1. To List out new keysrore File :
keytool -deststoretype PKCS12 -keystore newkeystore.p12 -list
2. Extract pem (certificate) from ".p12" keysotre file:
openssl pkcs12 -nokeys -in newkeystore.p12 -out certificatefile.pem
3. Extract unencrypted key file from ".p12" keysotre file:
openssl pkcs12 -nocerts -nodes -in newkeystore.p12 -out keyfile.ke
@marcelo225
Copy link

Thanks for helping about it

@nurain150
Copy link

Thanks for helping out, in this simple clear and concise steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment