Created
September 25, 2017 08:17
-
-
Save ChatchaiJ/6e71bdd3af850bea45bf93d062657e02 to your computer and use it in GitHub Desktop.
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/sh | |
[ -z "$1" ] && echo "Usage: $0 https://www.google.com" && exit | |
URL="$1" | |
curl --insecure -v $URL 2>&1 |\ | |
awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment