Created
July 19, 2014 17:09
-
-
Save kingster/e422b62df4fc8eacde9a to your computer and use it in GitHub Desktop.
SSL Private Key To Java Keystore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#create pksc12 file | |
openssl pkcs12 -export -in website.crt -inkey website.key -out website.p12 -name tomcat -CAfile ca.crt -caname root -chain | |
#create java keystore. [ You may change website.jks to keystore or any existing keystores you have] | |
keytool -importkeystore -srckeystore website.p12 -srcstoretype pkcs12 -destkeystore website.jks -deststoretype JKS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment