Monitor Multiple SSL Certificates
Monitor SSL certificates: start with an inventory
Monitoring only finds what you list. Gather hostnames from DNS zones, load balancers, CDN accounts, hosting panels, mail servers and old projects. Record for each: hostname, port, where the certificate lives, who owns it, how it renews and when it expires.
| Host | Port | Renewal | Owner | Expires |
|---|---|---|---|---|
| example.com | 443 | certbot timer | Web team | set automatically |
| mail.example.com | 993 | manual | IT | calendar reminder |
Check many hosts with one script
#!/bin/bash
# hosts.txt holds one host:port per line
while read -r hp; do
host=${hp%%:*}; port=${hp##*:}
end=$(echo | openssl s_client -servername "$host" -connect "$host:$port" 2>/dev/null \
| openssl x509 -noout -enddate 2>/dev/null | cut -d= -f2)
if [ -z "$end" ]; then echo "$hp,ERROR"; continue; fi
days=$(( ( $(date -d "$end" +%s) - $(date +%s) ) / 86400 ))
echo "$hp,$days"
done < hosts.txt | sort -t, -k2 -nThe output lists the soonest expiry first. Send rows below your threshold to email or chat. The script uses GNU date.
Tooling options
| Option | Strength | Weakness |
|---|---|---|
| Shell script and cron | Free, flexible | You maintain it |
| Uptime monitor with SSL checks | Easy alerts, status page | Limits on free plans |
| Prometheus with a TLS probe | Fits existing dashboards | Needs setup |
| Manual spot checks | No setup | Easy to forget |
For a quick check on a single host use the Live SSL Checker.
Monitor SSL certificates: alert design
- Warn at 30 days, act at 14, escalate at 7.
- Send to a shared mailbox or channel, not one person.
- Alert on errors too: a host that cannot be reached or has the wrong name.
- Alert when the certificate changes unexpectedly, which can reveal a misconfiguration.
Find certificates you forgot
Certificate Transparency logs list publicly issued certificates by domain, so searching for your domain reveals hostnames you may not know about. Compare that list with your inventory. Also scan your DNS records with the DNS Lookup Tool to find stale subdomains still serving old certificates.
Reduce the workload
Fewer manual renewals means fewer alerts. Move hosts to automated renewal, use a wildcard where it fits, and retire unused names. See our guide to automatic deployment for the setup. Monitoring stays on as the backstop when automation breaks.
Related reading: the SSL expiration checker, SSL expiration alerts and many sites on one server.
Frequently Asked Questions
How often should I check?
Daily is enough for expiry. Check more often if you want fast detection of misconfigurations.
Can I monitor internal hosts?
Yes, from a machine that can reach them. Use the same command.
What about certificates on mail or database ports?
Include the port, and add STARTTLS options for protocols that need them.
Is monitoring needed if I use automation?
Yes. Automation fails quietly, and an alert catches that.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.