https://github.com/fuglede/certificate-expiry-alarm
Docker image for checking SSL certificate expiry
https://github.com/fuglede/certificate-expiry-alarm
alarms ssl-certificates
Last synced: 3 months ago
JSON representation
Docker image for checking SSL certificate expiry
- Host: GitHub
- URL: https://github.com/fuglede/certificate-expiry-alarm
- Owner: fuglede
- License: apache-2.0
- Created: 2020-07-01T19:21:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T18:51:58.000Z (over 5 years ago)
- Last Synced: 2025-02-24T01:39:50.600Z (8 months ago)
- Topics: alarms, ssl-certificates
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Certificate expiry alarms
This Docker image allows you to run checks on whether the SSL certificates provided by a given collection of hostnames are about to expire, and send alarms to a given email address.
It is intended for use in situations where Docker is available, but fine-grained control of the host system is not, where it is not possible to automate certificate renewal (a la Let's Encrypt), and where one has an authentication-free SMTP server available.
# Usage
For example, to check if the certificates hosted by `d1.example.com` and `d2.example.com` will expire within 60 days, you can do something like
```
docker run -e FROMEMAIL=admin@example.com -e SMTPHOSTNAME=mail.example.com -e HOSTNAMES=d1.example.com\ d2.example.com -e SECONDSTOEXPIRY=5184000 -e FROMNAME=Admin -e RECIPIENTS=user@exapmle.com -d fuglede/certificate-expiry-alarm
```