Skip to content

Instantly share code, notes, and snippets.

@thiyagaraj
Created August 27, 2017 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiyagaraj/4665516eff1075ad7a3f3f74ef64d5bb to your computer and use it in GitHub Desktop.
Save thiyagaraj/4665516eff1075ad7a3f3f74ef64d5bb to your computer and use it in GitHub Desktop.

TLS/Certificates cheatsheet

Save certificate being presented by any endpoint

$ echo -n | openssl s_client -connect HOSTNAME:PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > server.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment