Created
December 24, 2018 05:19
-
-
Save CHERTS/086ac4244b07882ff191bdf364662f4c to your computer and use it in GitHub Desktop.
OpenSSL get sha256 ssl fingerprint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYSITE=torproject.org && openssl s_client -servername ${MYSITE} -connect ${MYSITE}:443 </dev/null 2>/dev/null | openssl x509 -text | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/p' | openssl x509 -fingerprint -sha256 | head -1 | cut -f2 -d'=' | sed 's,:,,g' | tr '[:upper:]' '[:lower:]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment