Last active
January 27, 2017 15:01
-
-
Save non7top/f7e6893a9feb72d4579cc2a3ae92d4c8 to your computer and use it in GitHub Desktop.
Dump remote site certificate
This file contains hidden or 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
#!/bin/bash | |
SITE=${1} | |
openssl s_client -connect ${SITE}:443 -servername $SITE </dev/null 2>/dev/null | openssl x509 -outform PEM > $SITE.pem | |
echo saved as $SITE.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment