Created
April 27, 2019 02:25
-
-
Save sjeandeaux/765b3f265f5caa9bf22ba16de7caedb2 to your computer and use it in GitHub Desktop.
Import certificate from server (hostname and port)
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
server=google.com | |
server=443 | |
alias=alias | |
password=changeit | |
keytool -printcert -sslserver ${server}:${port} -rfc > tempfile | |
keytool -import -noprompt -alias ${alias} -keystore knox.jks -storepass ${password} < tempfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment