Created
October 25, 2019 12:37
-
-
Save MikaelElkiaer/b7b994f878574a572bda9502d81d08c8 to your computer and use it in GitHub Desktop.
Get SSL info via curl
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 -v https://some-domain.com 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