Created
April 29, 2015 04:27
-
-
Save thiamteck/e343066680b04a550606 to your computer and use it in GitHub Desktop.
One liner for extract public SSL cert from a server
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 127.0.0.1:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment