Skip to content

Instantly share code, notes, and snippets.

@polster
Created June 14, 2015 20:12
Show Gist options
  • Save polster/8a6fdbdf3dbc0ca877c1 to your computer and use it in GitHub Desktop.
Save polster/8a6fdbdf3dbc0ca877c1 to your computer and use it in GitHub Desktop.
How to download cert via terminal
echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$SERVERNAME.cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment