Skip to content

Instantly share code, notes, and snippets.

@MikaelElkiaer
Created October 25, 2019 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikaelElkiaer/b7b994f878574a572bda9502d81d08c8 to your computer and use it in GitHub Desktop.
Save MikaelElkiaer/b7b994f878574a572bda9502d81d08c8 to your computer and use it in GitHub Desktop.
Get SSL info via curl
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