Skip to content

Instantly share code, notes, and snippets.

@iwinux
Created January 26, 2013 13:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iwinux/4642354 to your computer and use it in GitHub Desktop.
Save iwinux/4642354 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
@iwinux
Copy link
Author

iwinux commented Jan 26, 2013

对比墙内和墙外的输出即可确定墙内证书是否有问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment