Created
January 21, 2013 15:35
-
-
Save fduran/4586880 to your computer and use it in GitHub Desktop.
Create Java KeyStore from SSL certificate
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
# www.fduran.com | |
# Create Java KeyStore from SSL certificate for domain example.com | |
# Change format from cert.crt PEM (----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----) to DER | |
openssl x509 -in cert.crt -inform PEM -out cert.der -outform DER | |
# create KeyStore cert.jks for your domain ("alias" in keytool, "common name" or CN in openssl req) | |
keytool -import -trustcacerts -alias example.com -file cert.der -keystore cert.jks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment