Skip to content

Instantly share code, notes, and snippets.

@mivano
Created January 29, 2019 08:39
Show Gist options
  • Save mivano/98892b9f02f86ec47acc627abffbfaaf to your computer and use it in GitHub Desktop.
Save mivano/98892b9f02f86ec47acc627abffbfaaf to your computer and use it in GitHub Desktop.
Check certificate using curl
curl --insecure -v https://webservertocheck 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