Skip to content

Instantly share code, notes, and snippets.

@goodfeel
Created August 1, 2016 08:34
Show Gist options
  • Save goodfeel/87f4db0dd5babbf046e2189a7e1c4816 to your computer and use it in GitHub Desktop.
Save goodfeel/87f4db0dd5babbf046e2189a7e1c4816 to your computer and use it in GitHub Desktop.
HTTP Pinning Certificate Generate
openssl x509 -noout -in CERTNAME.crt -pubkey | \
openssl asn1parse -noout -inform pem -out public.key;
openssl dgst -sha256 -binary public.key | openssl enc -base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment