Skip to content

Instantly share code, notes, and snippets.

@rainly
Forked from iwinux/verify-ssl.sh
Created January 26, 2013 14:48
Show Gist options
  • Select an option

  • Save rainly/4642792 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/4642792 to your computer and use it in GitHub Desktop.
openssl s_client -connect github.com:443 -showcerts 2>&1 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sed -ne '1,/-END CERTIFICATE-/p' > /tmp/github.com.pem
openssl x509 -in /tmp/github.com.pem -sha1 -noout -fingerprint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment