No description
| cert_saver.sh | ||
| LICENSE | ||
| README.md | ||
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