Created
June 14, 2015 20:12
-
-
Save polster/8a6fdbdf3dbc0ca877c1 to your computer and use it in GitHub Desktop.
How to download cert via terminal
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
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