Created
August 7, 2022 19:47
-
-
Save stigtsp/232e763f3d35a3e4e3c841a6e5c886ba to your computer and use it in GitHub Desktop.
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
# connect and save cert | |
openssl s_client -connect incomplete-chain.badssl.com:443 -servername incomplete-chain.badssl.com -showcerts < /dev/null 2>/dev/null | openssl x509 > downloaded_cert.crt | |
# fingerprint on cert (openssl) | |
openssl x509 -sha256 -in downloaded_cert.crt -noout -fingerprint | |
# same as | |
openssl base64 -d < downloaded_cert.crt | sha256sum | |
# check with | |
echo "9094c2bdfa697b4503daad1167eb20a5a471ea98d01f76547263fc9eaec7c8f2 downloaded_cert.bin" | sha256sum -c - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment