Skip to content

Instantly share code, notes, and snippets.

@pahud
Created April 12, 2015 09:25
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 pahud/3bbdeec8d9e85675eaf4 to your computer and use it in GitHub Desktop.
Save pahud/3bbdeec8d9e85675eaf4 to your computer and use it in GitHub Desktop.
download SSL certificate from the HTTPS server
echo -n | openssl s_client -connect <HTTPS_HOSTNAME>:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment