Skip to content

Instantly share code, notes, and snippets.

@judge2020
Last active May 4, 2018 16:51
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 judge2020/96a8f6201820eb0fdd74ae091bc4908e to your computer and use it in GitHub Desktop.
Save judge2020/96a8f6201820eb0fdd74ae091bc4908e to your computer and use it in GitHub Desktop.
checkcert.sh
# usage: sh checkcert.sh www.google.com
echo | openssl s_client -showcerts -servername $1 -connect $1:443 2>/dev/null | openssl x509 -inform pem -noout -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment