---
agent:
  instructions: "Search Greenbar's public pages and docs by keyword. A result has every word you give. Results are returned in Markdown."
  endpoint: "https://usegreenbar.com/.well-known/search?q={query}"
  method: "GET"
---

# SSL certificate monitors

> Check that a host's certificate is valid, and get a warning before it expires.

## What it checks

An SSL certificate monitor connects to a host and reads the certificate. Use it when you care about the certificate itself, not about a page on the site. A Website (HTTP) monitor can warn about the same certificate on an https:// URL; this type checks a host and port you name.

The check is down when the certificate doesn't verify (expired, untrusted, or the wrong host), when it has no expiry date, or when the connection fails. It is degraded, and still working, when the certificate expires within the days you set. Entering degraded sends one alert, then not again for 24 hours.

## Add a monitor

1. Choose Add monitor, and choose SSL certificate expiry.
2. Enter the host, like example.com, and the port. The port starts at `443`.
3. Set how many days before expiry to warn, the interval, and the timeout, then choose Create monitor.

![The Add monitor form with Type set to SSL certificate expiry, a host filled in, the port, the days-before-expiry field, Interval, Timeout and Create monitor.](https://usegreenbar.com/docs/screenshots/monitor-add-ssl-light.png?v=907b46cb3480)

*An SSL certificate monitor. The port starts at the usual HTTPS port, and you can change it.*

**Fields on an SSL certificate monitor**

| Field | What it does |
| --- | --- |
| Host | The name to check, with no https:// and no path. Anything else is refused: `Enter a host name only, like example.com (no https:// or path)`. |
| Port | The port to open. It starts at `443`. Anything else is refused: `Port must be 1–65535`. |
| Alert when the certificate expires within (days) | Degraded when the certificate expires within this many days. Anything else is refused: `Warn days must be 1–90`. The field starts filled in. |
| Interval | How often to check. Certificates change rarely, so the choices are 1 hour, 6 hours, 12 hours and 24 hours. A new monitor starts at the first of those. |
| Timeout (ms) | How long the check waits, including the host lookup. See Shared settings. |

## When a check fails

**Why an SSL certificate check fails, and what to change**

| What you see | Why | What to change |
| --- | --- | --- |
| The certificate doesn't verify | It is expired, untrusted, or for a different host. | Renew it, or check the host name matches the certificate. |
| Degraded, with an expiry date | The certificate still works and expires within the days you set. The boundary counts as degraded. | Renew it, or raise the days only if you want a later warning. |
| No connection | Nothing completed a TLS handshake within the timeout, or the host name could not be resolved: `Could not resolve hostname`. | Check the host name and that the port is reachable on the public internet, or raise the timeout. |
| `certificate has no expiry date` | The server's certificate has no expiry date, so there is nothing to compare with the days you set. | Serve a certificate that has an expiry date. |
| Refused when you save | A host that is, or resolves to, a private or internal address is refused: `Host must not be a private or internal network address` for an address, `Host resolves to a private or internal network address` for a name. | Use a public host. |

Interval, timeout, pausing and plan limits are on the Shared settings page.
