No description
Find a file
2025-08-11 14:54:40 -04:00
cert_saver.sh init this tool 2025-08-05 22:35:37 -04:00
LICENSE Initial commit 2025-08-05 22:01:16 -04:00
README.md feat: add oneliner to readme 2025-08-11 14:54:40 -04:00

cert_saver

Download all the certificates for a website

Output will include the full back and forth from openssl, a full chain, and individually named certs.

Usage

Flag Optional What does it do?
-c no Host:port to Connect to
-d yes Folder to save certs into. Defaults to ./tmp
-h yes Print this Help
./cert_saver.sh -d my_certs -c google.com:443
./cert_saver.sh -d tmp -c google.com:443

One Liner to Grab the Host's Cert

openssl s_client -connect host:port < /dev/null 2>/dev/null | openssl x509 -in /dev/stdin