Skip to content

Instantly share code, notes, and snippets.

@petrkohut
Created February 20, 2018 09:20
Show Gist options
  • Save petrkohut/8927c220fa24fcf19db60affc93ade4c to your computer and use it in GitHub Desktop.
Save petrkohut/8927c220fa24fcf19db60affc93ade4c to your computer and use it in GitHub Desktop.
Check remote SSL cert based on domain name
curl --insecure -v https://google.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