Created
April 12, 2015 09:25
-
-
Save pahud/3bbdeec8d9e85675eaf4 to your computer and use it in GitHub Desktop.
download SSL certificate from the HTTPS server
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 <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