Created
December 7, 2017 18:58
-
-
Save zglozman/13f9cf4ae10991775ca0266969062385 to your computer and use it in GitHub Desktop.
Extract Public key from a certificate
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 -connect www.facebook.com:443 -servername www.facebook.com -cipher ECDHE-ECDSA-AES128-GCM-SHA256 < /dev/null | ngs -e 'read().lines()["-----BEGIN CERTIFICATE-----"..."-----END CERTIFICATE-----"].join("\n").echo()' | openssl x509 -noout -text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment