Created
March 18, 2019 19:00
-
-
Save vissapra/4bffc8742a0d945dcd40ca29c9d207c8 to your computer and use it in GitHub Desktop.
Install SSL certificate to cacerts from remote server
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
openssl s_client -showcerts -connect {HOST:PORT} </dev/null 2>/dev/null|openssl x509 -outform PEM >server.pem | |
openssl x509 -outform der -in server.pem -out server.der | |
sudo keytool -import -alias your-alias -keystore jre/lib/security/cacerts -file server.der |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment