pin ssl fingerprint with Chrome HSTS

code:

$ openssl x509 -noout -fingerprint -sha1 -in <(openssl s_client -connect weibo.cn:443 -prexit 2>/dev/null) | python -c "print __import__('sys').stdin.read().partition('=')[2][:-1].replace(':','').decode('hex').encode('base64')"
fUWlLfAlsHpGFDfI4XsFOUWkA7Q=

website: https://www.grc.com/fingerprints.htm

Comments