π SSL Certificate Expiry Checker
Find certificates about to expire before they break your site
A simple bash script that checks SSL certificate expiry dates for one or more domains and alerts you if they’re expiring soon. Exit codes make it perfect for cron + monitoring integration.
Features
- β Check one or many domains at once
- β Configurable warning (default 30 days) and critical (default 7 days) thresholds
- β Exit codes for monitoring integration (0=OK, 1=warning, 2=critical)
- β Reads domains from args, file, or stdin
- β Color output when run interactively
Usage
./ssl-cert-checker.sh prag mati csysadmin.help github.com google.com
./ssl-cert-checker.sh -f domains.txt
Download
Get the script from the Free Tools Pack, or grab it directly:
# Clone from the repo (scripts are in /products/free/)
curl -O https://pragmaticsysadmin.help/downloads/ssl-cert-checker.sh
chmod +x ssl-cert-checker.sh
./ssl-cert-checker.sh --help
License
MIT β use, modify, redistribute.
Support
Bugs or questions: pragmatic@pragmaticsysadmin.help
More tools
See /shop/ for the full catalog, including paid toolkits:
- The 5-Minute Server Health Check Toolkit ($9) β the “do everything” Monday morning ritual
Made with care by Pragmatic Sysadmin.