---
title: "How to set up SSL certificate expiration alerts · Fettle"
description: "SSL certificate expiration alerts catch the renewal that quietly stopped working. Here is what to check besides the date, and how to get warned early."
url: "https://fettle.sh/use-cases/ssl-expiry-monitoring"
---

/ use-cases / ssl-expiry-monitoring

# How to set up SSL certificate expiration alerts

SSL certificate expiration alerts catch the renewal that quietly stopped working. Here is what to check besides the date, and how to get warned early.

Updated 2026-11-20 · Published 2026-08-24

[Start free](https://fettle.sh/register)

Free plan: 20 monitors every 3 minutes from 1 region. No card.

![Fettle SSL monitor showing the certificate subject, issuer, issue and expiry dates and days remaining](https://fettle.sh/_next/image?url=%2Fscreenshots%2Fuse-cases%2Fssl-monitor.webp\&w=3840\&q=75)

An SSL certificate expiration alert warns you a set number of days before a certificate expires, from a check that reads the certificate from the outside, on a schedule. Fettle is uptime monitoring for developers, and its SSL monitor does that check: it opens a real TLS connection, verifies the chain and hostname, and alerts once the certificate enters the warning window you choose, then again at whichever of 30, 14, 7 and 1 day left come after it.

## Why automated renewal still lets certificates expire

Manual certificate renewal is mostly a thing of the past. ACME clients like certbot, host-managed TLS on platforms like Vercel or Railway, and Kubernetes operators like cert-manager all renew certificates without a human clicking anything. For most sites that works silently for years. The argument for monitoring expiry is not that automation is unreliable in principle. It is that automation fails in ways that produce no visible error, until the certificate is gone.

The concrete failure modes are worth naming, because "the renewal script broke" covers several different things. A cron job or systemd timer running the renewal hook can stop firing: the server gets rebuilt, the crontab does not come back with it, and nothing notices. An HTTP-01 challenge proves domain control by serving a token at a well-known path. It breaks the moment something intercepts that path first, such as a redirect to HTTPS before the challenge is served, or a WAF rule blocking `/.well-known/acme-challenge/` as suspicious. A DNS-01 challenge proves control by publishing a TXT record instead. It breaks when the API token the ACME client uses to update DNS rotates or expires and nobody updates the client's config. And even a renewal that succeeds can fail the part that matters. The new certificate lands on disk, but the server process is never told to reload it. It keeps presenting the old one until it restarts for an unrelated reason, or until the old one expires.

The stakes of getting caught by any of these have gone up, not down. Public certificate authorities used to issue certificates valid for a year or more. The CA/Browser Forum's [ballot SC-081v3](https://cabforum.org/2025/04/11/ballot-sc081v3-introduce-schedule-of-reducing-validity-and-data-reuse-periods/), approved by all major browser vendors in 2025, caps new certificates at 200 days as of March 2026. The cap drops to 100 days in March 2027 and 47 days by March 2029. Let's Encrypt, the certificate authority behind most automated renewal, already issues 90-day certificates by default, with a 6-day option available ([its certificate profiles](https://letsencrypt.org/docs/profiles/)). Shorter defaults are already scheduled: 64 days from February 2027, then 45 days from February 2028 ([Let's Encrypt's announcement](https://letsencrypt.org/2025/12/02/from-90-to-45/)). Shorter lifetimes are good for security. They also mean a renewal process that silently breaks has a much smaller window before it becomes an outage. There is far less slack for "we'll notice eventually."

## What is worth monitoring

An expiry date by itself is a narrow signal. What is worth watching on a certificate:

- The expiry date itself, checked independently of your renewal process. "The cron job that renews certificates is still enabled" tells you the automation exists, not that it is working.
- Chain validity, not just the leaf certificate. A server that forgot to serve an intermediate certificate passes in clients that cache or fetch missing intermediates and fails in the rest. That is exactly the kind of partial failure that goes unreported for a long time.
- Hostname match. A certificate that is valid, unexpired and correctly chained but issued for the wrong name still fails every client that checks it, and expiry monitoring alone says nothing about it.
- Every node behind a load balancer, not just "the domain" as a single abstraction. Say TLS is terminated per node and one node is missing the latest certificate after a partial rollout. A check that happens to land on a healthy node will read as fine.
- Any secondary domain serving its own certificate, such as a `status.` subdomain, an API host, or a marketing site on a different platform than the app. Each one renews independently, and a healthy main domain says nothing about the others.

It is worth being explicit about what expiry monitoring does not cover. It says nothing about revocation. A CA can pull a certificate before its expiry date for reasons unrelated to age, and an expiry check alone will not catch that. Expiry is one specific failure mode of TLS, not a general TLS health check. It is often the most valuable one to automate, because it carries a countdown clock.

## How to set it up in Fettle

1. Create an API key with write scope under [API keys](https://dashboard.fettle.sh/api-keys) in the dashboard sidebar.
2. Add an SSL monitor pointed at the host and port that terminates TLS for the domain: the bare hostname, not a full URL. An SSL monitor checks from one region, since the certificate is the same from every vantage point. Fettle opens a real TLS handshake against it on the schedule you set, verifies the chain and hostname, and records the certificate's expiry date on the monitor.
3. Set the warning window with `warn_before_days` in the monitor's `config`. It is the number of days before expiry at which Fettle treats the certificate as needing attention. It defaults to 14 and accepts anywhere from 1 to 365 days. A certificate on a 200-day public-CA lifetime and one on a 90-day Let's Encrypt lifetime can each get a window sized to the runway their renewal process needs.
4. The request looks like this:

```
curl -s -X POST https://api.fettle.sh/v1/monitors \
  -H "Authorization: Bearer fettle_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "name": "example.com certificate",
        "type": "SSL",
        "target": "example.com",
        "interval_seconds": 3600,
        "timeout_seconds": 10,
        "regions": ["eu-central"],
        "config": {
          "warn_before_days": 21,
          "port": 443
        }
      }'
```

An hourly interval is plenty for a certificate check. Nothing about TLS expiry needs a 30-second poll, so spend the fast intervals elsewhere. Repeat the monitor for each domain and each load-balanced node worth checking independently. Use the [SSL checker tool](https://fettle.sh/tools/ssl-checker) to see a certificate's issuer, validity window and full chain before deciding what to point a monitor at. The full walkthrough for generating a key and reading monitor state back through the API is in the [quickstart guide](https://fettle.sh/docs/quickstart).

Prefer an MCP-aware client to raw `curl`? Point it at the same account with this one-liner:

```
{
  "mcpServers": {
    "fettle": {
      "url": "https://api.fettle.sh/mcp",
      "headers": { "Authorization": "Bearer fettle_your_key_here" }
    }
  }
}
```

## Which alerts to wire

A certificate expiring is one of the few failures with a genuine deadline attached, which makes the alert channel matter less than the lead time. Fettle sends alerts by email and Telegram on every plan, and to Slack, Discord or a webhook from Plus. The first warning fires once the certificate enters the `warn_before_days` window, and it repeats at whichever of 30, 14, 7 and 1 day left come after it, independent of the monitor's regular TLS check status.

Set `warn_before_days` with the actual renewal process in mind, not a round number. A domain on automated 90-day Let's Encrypt renewal already retries for weeks before expiry. It needs a shorter window than a certificate issued by hand, or through a process nobody has audited recently. Give the slower process enough days for a human to step in before the countdown reaches zero, not just enough to be told on the day. Wire the alert to whichever channel someone will act on quickly. The whole value here is the runway between the warning and the outage. A warning nobody reads until the certificate has expired is no better than no warning at all.

How many monitors and alert channels each plan includes is on the [pricing page](https://fettle.sh/pricing).

## Questions

- Doesn't certbot or my host renew certificates automatically?

  Usually, yes, and that is the problem. Automated renewal fails quietly. A hook that stops running, a broken ACME challenge, or a cert renewed on disk but never reloaded by the running server all end the same way as no automation at all: silently.

- If the certificate is not expired, is the site definitely fine?

  No. A hostname mismatch, a missing intermediate certificate, a revoked cert, or one node behind a load balancer serving the wrong certificate all break clients while the expiry date is still comfortably in the future.

- What does Fettle's SSL monitor actually check?

  It opens a TLS connection to your host and port on a schedule, verifies the certificate chain and hostname, and tracks the expiry date. The warning window you set for alerts is a separate setting.

## What Fettle includes

- [SSL certificate monitoring tool with expiry alerts SSL certificate monitoring tool: alerts days before a certificate expires or when its chain breaks, every expiry in one list, 20 monitors free.](https://fettle.sh/ssl-monitoring)

## Try it by hand first

- [SSL certificate checker SSL checker: check any domain's SSL certificate online for free, with the issuer, validity window, days until expiry and full chain. No sign-up needed.](https://fettle.sh/tools/ssl-checker)

## Related use cases

- [What is uptime monitoring? A developer's guide Uptime monitoring checks your sites, APIs and jobs from outside on a schedule and alerts you when they stop answering. How checks, regions and alerts work.](https://fettle.sh/uptime-monitoring)
- [How to monitor a cron job with a heartbeat A cron job that stops running fails no request and throws no error. Here is how a heartbeat monitor catches the silence and alerts you before users notice.](https://fettle.sh/use-cases/cron-job-monitoring)
- [Vercel health check: monitor your app from outside Vercel monitoring covers builds and functions, not whether your site answers. Here is how to run a health check on the domain and its certificate.](https://fettle.sh/use-cases/monitor-vercel-app)
- [Railway health check: monitor your app after the deploy A Railway health check runs only while a new deployment starts, then stops. Here is what that leaves unwatched on a long-lived container and how to fix it.](https://fettle.sh/use-cases/monitor-railway-app)
- [Fly.io health checks: monitor your app across regions Fly.io health checks decide routing per region, not whether your app is up everywhere. Here is what to monitor across regions and how to set it up.](https://fettle.sh/use-cases/monitor-fly-app)
- [Supabase health check: monitor REST, Auth and Storage A Supabase health check has to cover REST, Auth, Storage and Realtime, four services under one project ref. Here is what to check and how to set it up.](https://fettle.sh/use-cases/monitor-supabase-project)
- [How to monitor a scheduled GitHub Actions workflow A GitHub Actions cron schedule can be delayed, dropped or disabled without a failed run. A heartbeat ping alerts you when it stops running on time.](https://fettle.sh/use-cases/github-actions-cron-monitoring)

## Start monitoring in a minute

The free plan checks up to 20 monitors as often as every 3 minutes from 1 region, and emails you when one breaks. See [pricing](https://fettle.sh/pricing) for the paid intervals, or follow the [quickstart](https://fettle.sh/docs/quickstart) to do it from the API.

[Start free](https://fettle.sh/register)
