CLI to test TLS certificate expiry
Project description
cert-alert
Checks the expiry of TLS certificates and returns an error code when a given threshold is reached.
The program was born out of necessity to regularly check for internally deployed TLS certificates and their CAs.
I know calenders exists but a broken pipeline / alert is more noticeable 😅
Usage
Create a config.yml
certificates:
- my_certificate:
name: "my homelab CA certificate"
file: "./files/my_homelab_ca.pem"
threshold: 10
Run cert-alert
2025-03-07 13:08:50 win-box cert_alert.config_loader[4581] INFO Reading config from config.yml.example
2025-03-07 13:08:50 win-box cert_alert.config_loader[4581] INFO ✅ Config read successfully
2025-03-07 13:08:50 win-box cert_alert.cert_alert[4581] INFO Started
2025-03-07 13:08:50 win-box cert_alert.cert_alert[4581] WARNING ⚠ Certificate my homelab CA certificate has reaches the expiry threshold
The results are written to report.json by default.
It is possible to check for HTTPS certificates using ssl and urllib like this
certificates:
- remote_test:
name: "github public endpoint"
url: "github.com"
threshold: 100
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cert_alert-0.0.1.tar.gz.
File metadata
- Download URL: cert_alert-0.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3826b82614764cb9b5f3fdb141254686ec22d2ce64413050a555b0582e902eb8
|
|
| MD5 |
e1d20e60573769e547516dbfd73525b2
|
|
| BLAKE2b-256 |
2c5a165737c6855572d2d0f787ddebbf98d9dd6e9287928f8ea29a0426ceb793
|
File details
Details for the file cert_alert-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cert_alert-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94d07e02c305863cc15dcb4ded717a047459aba7279ae140934889cc19dfa80d
|
|
| MD5 |
989584fd82bdd4fd53e96edb68be914c
|
|
| BLAKE2b-256 |
de961bb6ac13a375483a86f21e69ae8e694816e7f78e45fa01f1f9ad6f4e17f8
|