Skip to content

Instantly share code, notes, and snippets.

@brunocicom
Created September 13, 2022 12:36
Show Gist options
  • Save brunocicom/d93f98f9539823778e5629b0ac6692b3 to your computer and use it in GitHub Desktop.
Save brunocicom/d93f98f9539823778e5629b0ac6692b3 to your computer and use it in GitHub Desktop.
Export .pem from site
echo | openssl s_client -servername google.com -connect site.google.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment