SSL Certificate Monitors
What an SSL Certificate Monitor Is
Section titled “What an SSL Certificate Monitor Is”An SSL certificate monitor watches the TLS certificate on any host and port. From each selected region, LoadFocus opens a TLS connection and completes the handshake, without sending an HTTP request. It then checks that the certificate is trusted, matches the host name and has not expired.
Every HTTPS API check already inspects its certificate (see SSL Certificate Monitoring). An SSL certificate monitor is for the cases where there is no URL worth calling: a mail server, a service on a port other than 443, an API that answers nothing useful to a plain request, or a certificate you simply want to watch on its own.
Create an SSL Certificate Monitor
Section titled “Create an SSL Certificate Monitor”- On the API Monitors page, click New Monitor and choose SSL Certificate.
- Enter the Host: the host name only, without
https://, a port or a path, for exampleexample.com. It must be reachable from the public internet, solocalhostand private or loopback IP addresses are refused. - Enter the Port. It defaults to 443 and accepts 1 to 65535.
- Set Days before expiry to mark the check as degraded. It defaults to 14 and accepts 0 to 365.
- Set the Handshake timeout (ms): how long to wait for the connection and the handshake. It defaults to 10000 and is kept between 1000 and 20000.
- Optionally set a Degraded threshold (ms) and Fail when slower than (ms). Both are compared with the total time of the run.
- Pick your locations, frequency and alert channels, then save. SSL certificate monitors do not run from Bahrain (me-south-1) yet: that location is hidden while SSL is selected and removed if it is set another way, for example in monitoring as code or through a check group. If it was the only location, the check runs from N. Virginia (us-east-1).
Passed, Degraded or Failed
Section titled “Passed, Degraded or Failed”- Failed: the certificate is not trusted, does not match the host name or has expired, the host does not resolve or resolves to a private address, the connection or handshake fails or times out, or the run is slower than Fail when slower than.
- Degraded: the certificate is valid but expires within the days you set, or the run is slower than the degraded threshold.
- Passed: everything else.
A self-signed certificate, or one issued by a private certificate authority, is not trusted, so the check fails. The monitor speaks TLS from the first byte: services that switch to TLS with STARTTLS (for example SMTP on port 587 or IMAP on port 143) are not supported, so use their TLS port instead, such as 465 or 993.
What Each Run Shows
Section titled “What Each Run Shows”The check page shows the target as host:port and a Certificate panel with:
- Status (valid or not valid) and Days left.
- Valid from and Expires.
- Issuer and Subject.
- Protocol and Cipher.
- Host name matches.
- Error, when the run failed.
- Timings: DNS, connect, TLS and total, in milliseconds.
The run overview and failure reasons work the same way as for API checks.
Expiry Alerts
Section titled “Expiry Alerts”Up, down and degraded alerts go through the alert channels on the check, like any other check. On top of those, you get certificate expiry warnings that name the host:port target. The first one comes when the certificate is within your Days before expiry setting, then again at 7, 3 and 0 days, counting only the days below your setting. They go through the alert channels on the check; if none of them delivers a warning, it is emailed to the address on the check. You get one warning per step per certificate, and the steps start again when the certificate is renewed. With the default of 14 that is 14, 7, 3 and 0 days, the same as HTTPS API checks; with 30 it is 30, 7, 3 and 0. The same setting also decides when the check turns degraded. To switch the warnings off, clear an SSL certificate expires soon under Advanced notification options on the check.
SSL certificate monitors are available on every plan, including Free. They count toward the same limit as API and DNS checks, and each run uses one check run per location. See Plans and Limits.
For the shared settings (frequency, locations, alert channels, activate and mute), see How to Create a New API Check.