Skip to content

Instantly share code, notes, and snippets.

@sudansh
Last active February 1, 2022 12:05
Show Gist options
  • Save sudansh/e1dbd2d893a579e076b24189c57693ab to your computer and use it in GitHub Desktop.
Save sudansh/e1dbd2d893a579e076b24189c57693ab to your computer and use it in GitHub Desktop.
SSL Pinning
Get the SHA256 pin to be used in okhttp
https://www.ssllabs.com/ssltest/analyze.html
Sha256 from PEM file
openssl x509 -in cert.pem -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment