Created
December 23, 2020 12:20
-
-
Save soledue/bd1cb011a1dfec38f298e78565d8292e to your computer and use it in GitHub Desktop.
extract public key from host
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
openssl s_client -servername www.google.com -connect www.google.com:443 | openssl x509 -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