Skip to content

Instantly share code, notes, and snippets.

@thiamteck
Created April 29, 2015 04:27
Show Gist options
  • Save thiamteck/e343066680b04a550606 to your computer and use it in GitHub Desktop.
Save thiamteck/e343066680b04a550606 to your computer and use it in GitHub Desktop.
One liner for extract public SSL cert from a server
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