Last active
September 14, 2021 14:04
-
-
Save danihuge/02f876fcdb64d52d069ca4b7c5ffc098 to your computer and use it in GitHub Desktop.
CLI script to check SSL cert
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
curl --insecure -vvI https://www.google.com 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