πŸ”’ 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:


Made with care by Pragmatic Sysadmin.