Skip to content

Instantly share code, notes, and snippets.

@dky
Last active March 10, 2025 21:10
Show Gist options
  • Save dky/3d09013f45d8c47c52fe2c1a8a476718 to your computer and use it in GitHub Desktop.
Save dky/3d09013f45d8c47c52fe2c1a8a476718 to your computer and use it in GitHub Desktop.
openssl s_client -showcerts -verify 5 -connect www.google.com:443 < /dev/null | awk '/BEGIN/,/END/{ if(/BEGIN/){a++}; out="cert"a".pem"; print >out}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment