Skip to content

Instantly share code, notes, and snippets.

@danihuge
Last active September 14, 2021 14:04
Show Gist options
  • Save danihuge/02f876fcdb64d52d069ca4b7c5ffc098 to your computer and use it in GitHub Desktop.
Save danihuge/02f876fcdb64d52d069ca4b7c5ffc098 to your computer and use it in GitHub Desktop.
CLI script to check SSL cert
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