Skip to content

Instantly share code, notes, and snippets.

@welshstew
Created December 8, 2021 13:17
Show Gist options
  • Save welshstew/874cc08d890c05effafc0dea5fbb0f6f to your computer and use it in GitHub Desktop.
Save welshstew/874cc08d890c05effafc0dea5fbb0f6f to your computer and use it in GitHub Desktop.
openssl-get-cert-as-pem
openssl s_client -connect www.google.com:443 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment