Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created October 16, 2017 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolleiv/c246bc1fdce293a3bd8b52a203a35600 to your computer and use it in GitHub Desktop.
Save tolleiv/c246bc1fdce293a3bd8b52a203a35600 to your computer and use it in GitHub Desktop.
#!/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