ssl-check
ssl-check
Check TLS certificate expiry for one or many hosts. Sends alerts via Slack, email or webhook when certificates are close to expiration.
Installation
bpkg install luislavena/ssl-check
Usage
# Check a single host
ssl-check example.com
# Check multiple hosts
ssl-check example.com api.example.com cdn.example.com
# Alert if expiring within 30 days
ssl-check --warn-days 30 example.com
# From a file list
ssl-check --hosts-file /etc/ssl-check/hosts.txt
# JSON output
ssl-check --format json example.com
Sample output
example.com:443 ✓ 87 days (expires 2024-07-15)
api.example.com:443 ⚠ 12 days (expires 2024-04-20) ← alert!
old.example.com:443 ✗ EXPIRED (expired 2024-03-01)