Created
April 10, 2017 16:12
-
-
Save justengland/ffdddcc82c7c351bf650fcb2ccaf3ef3 to your computer and use it in GitHub Desktop.
Get Certificate info
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
#!/usr/bin/env bash | |
SITE=https://www.google.com;curl --insecure -v "$SITE" 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment