Skip to content

Instantly share code, notes, and snippets.

@npathai
Last active November 14, 2018 08:01
Show Gist options
  • Save npathai/c40dd638ea66c37a8093b69b9269684e to your computer and use it in GitHub Desktop.
Save npathai/c40dd638ea66c37a8093b69b9269684e to your computer and use it in GitHub Desktop.
Import Certificate Chain (Root, Intermediate and Client/Server) and Private key in Java KeyStore (JKS)
keytool -importkeystore -srckeystore middleware_keystore_org -destkeystore private_key.p12 -deststoretype PKCS12
openssl pkcs12 -in private_key.p12 -out private_key.pem -nodes
openssl pkcs12 -export -inkey private_key.pem -in Meydan1-certnew_941.cer -name test -out test.p12
keytool -importkeystore -srckeystore test.p12 -srcstoretype pkcs12 -destkeystore middleware_keystore_try3.jks
keytool -list -v -keystore middleware_keystore_try3.jks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment