About certificate checks
Certificate
A certificate check connects to a host the way a visitor's browser does, reads the TLS certificate the server presents, and judges it. It tells you when a certificate has expired, cannot be trusted, does not cover the host name, or is signed with a weak algorithm. It also warns you before the certificate expires, while there is still time to renew it.
A certificate check does not request a web page. Page content, status codes and redirects belong to the uptime check.
When a domain's uptime check uses an https address, Alopex adds a certificate check for the domain's host name on port 443. If you later change the uptime check to http, Alopex switches the certificate check off, and the Checks tab offers Switch it back on, under Not watching yet, once the address is https again. You can add more certificate checks, for example for an API host or another port, from Add check on the Checks tab. The fields are listed in Certificate check settings.
What one run does
Each run follows the same steps.
- Alopex looks up the Host and checks that it resolves to a public address. A host that resolves to a private address is not checked (see Address not allowed).
- It opens a connection to the Port, asks for the certificate by host name, and waits up to 10 seconds for the handshake. You cannot change that wait.
- It judges the certificate your server sends. Alopex uses only the certificates the server presents, and checks them against the trusted certificate authority store on Alopex's own system, with the intermediate certificates the server sent. It reads the signature on your server's own certificate, not on the intermediates. The first problem it finds, in the order below, decides the failure reason.
- If Check that http:// redirects to https:// is on, it also looks at plain
http(see HTTPS redirect advice).
The run comes from a single location in the UK, and Alopex does not publish IP addresses. The certificate read opens a TLS connection rather than sending an HTTP request, so it carries no user agent and you cannot allow it by user agent. A rule that blocks by country or network is what can stop it. Allow connections from the UK to the port the check uses. The redirect advice in step 4 is different: it sends ordinary HTTP requests with the user agent Alopex/1.0 (+uptime monitor), which you can allow. If a firewall blocks the connection, see Alopex can't reach my site.
A certificate check runs once a day, counted from its last run, again after 5 minutes while a failure is unconfirmed, and again straight away when you add it or change its Host or Port. It does not follow the domain's Check every setting. To run it now, use Run now on its row in the Checks tab.
What counts as a failure
A run fails when any of these happens. Each links to the page that explains it.
| What happened | Failure reason |
|---|---|
| The certificate's end date has passed | Certificate expired |
| The certificate is not trusted, or none could be read | Certificate chain invalid |
| The certificate does not cover the Host | Certificate does not match host |
| The certificate is signed with SHA-1, MD5, MD4, MD2 or SHA-0 | Weak certificate signature |
| No handshake completes within 10 seconds | Timed out |
| The server could not be reached, or the handshake failed | Connection failed |
| The host name does not resolve | DNS lookup failed |
| The host resolves to a non-public address | Address not allowed |
An incident for a certificate check is headed Certificate check failing.
Warnings before expiry
An expiring certificate is not a failure. The check stays up, and Alopex warns you instead. The warning is a notification and a label on the check. It does not open an incident.
With Warn before expiry (days) at its default of 14, 7, 1, the check starts warning when 14 days or fewer remain. The check's status on the Checks tab then reads Expires in 14 days, counting down, and the SSL certificate line under Renewals on the domain's Overview shows the end date. Alopex sends one notification the first time the days remaining fall to or below each number you listed, so with the defaults you hear at 14, 7 and 1 days. These notifications are sent under the Certificate expiring alert type.
When the server presents a new certificate, Alopex records it and starts the warnings again. Warnings are not held back during a maintenance window, because a window does not renew a certificate.
If the certificate expires, the next run fails with Certificate expired.
How quickly you hear about a failure
One failing run does not open an incident. An incident opens when the check has failed as many runs in a row as the domain's Consecutive failures before an incident setting, which is 2 by default. You find it under Settings, in General. See Domain settings.
While a failure is unconfirmed, a certificate check runs again after 5 minutes, whatever its daily pace. Those extra runs count towards the total, so at the default of 2 the incident opens about 5 minutes after the first failing run. Once the incident is open, the check goes back to once a day. A passing run resets the count to zero and closes any open incident. The warnings before expiry are what give you notice ahead of the date.
Hosts on someone else's domain
If the Host is not the domain you added the check to or one of its subdomains, Alopex treats it as a dependency, such as a payment provider's API. When a dependency fails, the domain is shown as degraded rather than down, and the alert says so.
HTTPS redirect advice
While Check that http:// redirects to https:// is on, every run that reads a certificate also looks at plain http. Alopex requests http://<host>/, and http://www.<host>/ as well when the host is a registered domain such as example.com. It follows up to 5 redirects and sends the user agent Alopex/1.0 (+uptime monitor). From the result it can tell you three things:
http://does not redirect tohttps://, shown as a Warning. The card readshttp://<host> does not redirect to https.- The redirect is temporary, shown as a Suggestion. The card reads
http://<host> redirects temporarily, with the status code. - The
httpsresponse has no HSTS header, shown as a Suggestion. The card readsNo HSTS header on <host>.
The findings appear in the HTTPS card on the domain's Overview, with the time of the check. They are advice only. They never fail the check, never change the domain's status and never send an alert. This probe is a request to your site, so it is the one part of a certificate check with a user agent. To stop it, see HTTPS redirect check. If nothing answers on plain http, or the request cannot complete, Alopex reports nothing for that host.
Maintenance windows
While a maintenance window covers a certificate check, its runs are recorded as maintenance. They are not counted as failures and no incident is opened. If an incident was already open when the window began, it stays open. Maintenance windows are set up on the domain. See About maintenance windows and Schedule maintenance.