Created
April 2, 2022 16:49
-
-
Save tanaka-geek/6084eb9a18bee83fa84c05bfe516bd2b to your computer and use it in GitHub Desktop.
cert-check
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 | |
if [ $# -eq 0 ] | |
then | |
echo "./this.sh https://example.com" | |
fi | |
curl --insecure -vvI $1 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