Created
October 16, 2017 14:40
-
-
Save tolleiv/c246bc1fdce293a3bd8b52a203a35600 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
SITE=example.org | |
openssl s_client -connect $SITE:443 > /tmp/cert (edited) | |
sudo keytool -storepass changeit -import -alias $SITE -keystore $(/usr/libexec/java_home)/jre/lib/security/cacerts -file /tmp/cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment