A little script I wrote to track SSL certificate expiration.

Below, find some info on a handy little script I wrote to track SSL certificate expiration. I use this all the time and find it to be quite handy. Please feel free to fork and improve this, or let me know if you find it useful. Enjoy!

Download the program from github here: https://github.com/aagregory/certcheck

certcheck

Why use certcheck?

certcheck is a simple script that uses the tools already available on a system to generate a report that can be used to track the expiration date of critical website certificates. This will ensure a level of visibility required to maintain certificate renewals in a timely fashion.

certcheck requires Curl, Perl, and the DateTime module.

Recommended configuration

Run certcheck on a Linux host that has the required tools. Recommend running the report daily using cron and emailing to the webmaster, or using a log aggregator like elastic stack to monitor and send alerts if the expiration date is closing in.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *