Skip to content

Instantly share code, notes, and snippets.

@nsleader
Created June 10, 2016 09:38
Show Gist options
  • Select an option

  • Save nsleader/38d8ad1de33012d104d8a8bbd5dc37f5 to your computer and use it in GitHub Desktop.

Select an option

Save nsleader/38d8ad1de33012d104d8a8bbd5dc37f5 to your computer and use it in GitHub Desktop.
openssl s_client -connect host.com:443
// copy from output -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- to cert.pem file
openssl x509 -inform PEM -outform DER -in cert.pem -out cert.der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment