SSL Certificate Monitoring with Telegram Alerts. Script + Guide
Sold <10
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
Product description
A dependency-free script checks the expiry dates of the SSL certificates of your domains and warns you in Telegram in advance — 30, 14, 7 and 3 days before expiry. After each check it writes a text report on the status of all domains: which certificate is fine, which one is about to expire, and which one is unreachable.
One alert per threshold per certificate: sent alerts are remembered in a state file, so the same threshold never alerts twice, even if cron runs the script every hour. The next alert comes only when a stricter threshold is crossed (14 days left became 7) or after the certificate is renewed: the script sees the new date and resets the dedup on its own, nothing to delete manually.
Domains, thresholds and the bot token live in a single config.json: adding a domain is one line, no code changes needed. Checks run over a TLS connection to your own server, with no third-party services or subscriptions. Exit code: 0 — all fine, 1 — there are problems, so the cron log shows it right away.
WHAT´S INSIDE THE ARCHIVE
• ssl_monitor.py — certificate checks, thresholds, alert dedup, report, Telegram sending
• config.example.json — sample config: domain list, thresholds, bot token
• run.sh — one-command launcher
• cron-example.txt — ready crontab lines (daily or every 6 hours)
• test_ssl_monitor.py — automated tests, no live internet or real Telegram needed
• README.md and PDF — full guide: setup, bot, config, cron, troubleshooting
GUIDE STEPS
1. Create a bot with @BotFather, get your ID from @userinfobot → config.json.
2. List your domains in config.json, thresholds — custom if you like.
3. ./run.sh — report in the console and a Telegram alert if a deadline is near.
4. A crontab line — check once a day at 09:00.
5. Renewed a certificate — the script notices the new date on its own.
WHAT YOU NEED
Python 3.10+ on a computer or VPS and a bot token from @BotFather. 10 minutes.
HONEST LIMITS
The script only checks and warns — it does NOT renew certificates on its own. Renewal is `certbot renew` or your hoster´s panel. Checks run from the machine where the script runs: if a domain is unreachable from there (firewall, closed port), the status is «check error», not a false alert. The script checks the certificate the server presents on the given port: if the port serves the wrong certificate (for example, the hoster´s default one), the alert is about that one. Alerts depend on the Telegram Bot API: if Telegram is unreachable, the alert won´t arrive — but ssl_report.txt is still written and the exit code is 1. Chain validity and certificate revocation (OCSP/CRL) are not checked.
IMPORTANT
These are files and a guide for self-setup — not a done-for-you installation. If you need the monitoring installed on your server turnkey, that´s a separate service.
SIMILAR PRODUCTS
• VPS Disk Monitoring: Space, Growth, Telegram Alerts: /itm/vps-disk-monitoring-space-growth-telegram-alerts/6439442
• Website uptime monitoring without Docker: /itm/website-uptime-monitoring-without-docker-cron-curl-telegram-scripts-guide/6429385
• VPS monitoring: Uptime Kuma + alerts: /itm/vps-monitoring-uptime-kuma-telegram-alerts-docker-compose-stack-guide/6410250
• nginx log rotation and analysis: /itm/nginx-log-rotation-and-analysis-who-loads-your-site-script-guide/6432375
• SSH hardening: /itm/ssh-hardening-on-vps-keys-fail2ban-no-passwords-script-guide/6423692
• Site on VPS from domain to HTTPS: /itm/site-on-vps-from-domain-to-https-step-by-step-guide-dns-nginx-certbot-configs/6406547
One alert per threshold per certificate: sent alerts are remembered in a state file, so the same threshold never alerts twice, even if cron runs the script every hour. The next alert comes only when a stricter threshold is crossed (14 days left became 7) or after the certificate is renewed: the script sees the new date and resets the dedup on its own, nothing to delete manually.
Domains, thresholds and the bot token live in a single config.json: adding a domain is one line, no code changes needed. Checks run over a TLS connection to your own server, with no third-party services or subscriptions. Exit code: 0 — all fine, 1 — there are problems, so the cron log shows it right away.
WHAT´S INSIDE THE ARCHIVE
• ssl_monitor.py — certificate checks, thresholds, alert dedup, report, Telegram sending
• config.example.json — sample config: domain list, thresholds, bot token
• run.sh — one-command launcher
• cron-example.txt — ready crontab lines (daily or every 6 hours)
• test_ssl_monitor.py — automated tests, no live internet or real Telegram needed
• README.md and PDF — full guide: setup, bot, config, cron, troubleshooting
GUIDE STEPS
1. Create a bot with @BotFather, get your ID from @userinfobot → config.json.
2. List your domains in config.json, thresholds — custom if you like.
3. ./run.sh — report in the console and a Telegram alert if a deadline is near.
4. A crontab line — check once a day at 09:00.
5. Renewed a certificate — the script notices the new date on its own.
WHAT YOU NEED
Python 3.10+ on a computer or VPS and a bot token from @BotFather. 10 minutes.
HONEST LIMITS
The script only checks and warns — it does NOT renew certificates on its own. Renewal is `certbot renew` or your hoster´s panel. Checks run from the machine where the script runs: if a domain is unreachable from there (firewall, closed port), the status is «check error», not a false alert. The script checks the certificate the server presents on the given port: if the port serves the wrong certificate (for example, the hoster´s default one), the alert is about that one. Alerts depend on the Telegram Bot API: if Telegram is unreachable, the alert won´t arrive — but ssl_report.txt is still written and the exit code is 1. Chain validity and certificate revocation (OCSP/CRL) are not checked.
IMPORTANT
These are files and a guide for self-setup — not a done-for-you installation. If you need the monitoring installed on your server turnkey, that´s a separate service.
SIMILAR PRODUCTS
• VPS Disk Monitoring: Space, Growth, Telegram Alerts: /itm/vps-disk-monitoring-space-growth-telegram-alerts/6439442
• Website uptime monitoring without Docker: /itm/website-uptime-monitoring-without-docker-cron-curl-telegram-scripts-guide/6429385
• VPS monitoring: Uptime Kuma + alerts: /itm/vps-monitoring-uptime-kuma-telegram-alerts-docker-compose-stack-guide/6410250
• nginx log rotation and analysis: /itm/nginx-log-rotation-and-analysis-who-loads-your-site-script-guide/6432375
• SSH hardening: /itm/ssh-hardening-on-vps-keys-fail2ban-no-passwords-script-guide/6423692
• Site on VPS from domain to HTTPS: /itm/site-on-vps-from-domain-to-https-step-by-step-guide-dns-nginx-certbot-configs/6406547
Main features
- Content type File
- Content description 60,71 kB
- Updated on the site 24.11.2026
Images
Reviews
No reviews yet
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
You viewed
All images, logos, and names of games, programs, and other products used are taken from public sources and are for informational purposes only. All trademarks, logos, names, and other intellectual property belong to their respective owners. Use of such images on the website does not imply any affiliation or connection with the copyright holders.