Posts Openssl extract website ssl certificate
Post
Cancel

Openssl extract website ssl certificate

  • extract and save certificate to a file
1
$ echo | openssl s_client -showcerts -connect google.com:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/cert.crt
This post is licensed under CC BY 4.0 by the author.