SSL Monitoring
Using SSL Monitoring, you can ensure your SSL endpoints to avoid late renewal or misconfigurations that make your service unavailable. SSL Monitoring works on any port from 1 to 65535: websites on 443, mail servers on 465, 587, 993, and others, and your own services on custom ports. For mail servers that upgrade a plain connection with STARTTLS, choose the matching protocol and Xitoring reads the certificate after the upgrade.
For each check, you can configure several prior expiration notifications where the default configuration is 1, 7, 14, and 30 days prior notification. However, you always get an instant alert, if the SSL endpoint is misbehaving.
See the SSL Monitoring product page for an overview, and Pricing for the number of SSL endpoints included on each plan.
Creating an SSL Check
- Navigate to
SSL Monitoringpage and Click onAdd new SSL Monitoring - Provide appropriate values for:
- Label: Can be anything you want to see in the dashboard.
- Hostname: Your hostname (domain) e.g. xitoring.com or mail.example.com
- Protocol: How Xitoring connects to read the certificate. See Protocols and ports.
- HTTPS / TLS (default): a direct TLS connection. Use it for websites and for any service that speaks TLS from the start.
- SMTP (STARTTLS), IMAP (STARTTLS), POP3 (STARTTLS): for mail servers that start in plain text and upgrade the connection with STARTTLS.
- Port: Choosing a protocol fills in its usual port. Pick one of the suggested ports or enter any port from 1 to 65535.
- Warning before SSL expires in: You can select as many as you wish, to receive prior expire notice.
- Notification Roles: You can select one or multiple notification roles to receive both instant and prior expire notifications.
- Fault Tolerance(M): It's applicable only for the time that SSL endpoints are not responding, misconfigured, or not reachable.
- Click on
Create.
Existing SSL checks keep working as before. They use the HTTPS / TLS protocol.
Protocols and ports
With HTTPS / TLS, Xitoring opens a TLS connection directly and reads the certificate from the handshake.
With a STARTTLS protocol, Xitoring connects in plain text first, asks the server to upgrade the connection, and then reads the certificate. For SMTP, it sends EHLO and then STARTTLS. IMAP and POP3 work the same way with their own upgrade commands.
Common services and the settings to use:
| Service | Protocol | Port |
|---|---|---|
| HTTPS (websites, APIs) | HTTPS / TLS | 443 |
| SMTP submission | SMTP (STARTTLS) | 587 |
| SMTP (server to server) | SMTP (STARTTLS) | 25 |
| SMTPS | HTTPS / TLS | 465 |
| IMAP | IMAP (STARTTLS) | 143 |
| IMAPS | HTTPS / TLS | 993 |
| POP3 | POP3 (STARTTLS) | 110 |
| POP3S | HTTPS / TLS | 995 |
| Custom TLS service | HTTPS / TLS | any, e.g. 8443 |
Tips
If you're not sure which one your mail server uses: ports 465, 993, and 995 speak TLS from the start, so use HTTPS / TLS. Ports 25, 587, 143, and 110 start in plain text, so use the matching STARTTLS protocol.
Expiry warnings and incidents
Expiry warnings and incidents work the same for every protocol and port. You get a warning for each threshold you selected (by default 1, 7, 14, and 30 days before expiry).
An SSL check goes down only for a certificate or TLS problem: the certificate has expired or can't be verified, STARTTLS isn't offered or fails, or the TLS handshake fails. If Xitoring can't reach the server at all (connection timed out, refused or closed, or the host doesn't resolve), the check doesn't go down. It shows Certificate not checked with the reason and keeps the last certificate details. Use an HTTP, Ping or TCP check to be alerted when the server itself is down, so one outage doesn't send two alerts.
When the port isn't 443, notifications show the host with its port, for example mail.example.com:587, so you can tell checks on the same host apart.
SSL Labs grade
The SSL Labs grade is only available for checks on port 443. Checks on other ports don't show a grade.
Troubleshooting
When an SSL check goes down, the incident shows the cause. Connection problems (timed out, refused, closed, unknown host) don't take the check down; they show as Certificate not checked, and the Run Test button reports them when you set up a check. The table below lists every cause and what to check for each.
| Cause | What to check |
|---|---|
| Connection timed out | The port is not reachable from Xitoring. Make sure the port is open in your firewall and security groups for the monitoring nodes, and that the service is running. If the message says it was waiting for the mail server to answer, you probably chose a STARTTLS protocol for a port that speaks TLS from the start (465, 993, 995). Switch to HTTPS / TLS. |
| Connection refused | The host answered, but nothing listens on that port. Check the port number and that the service is running and bound to a public address. |
| Connection closed | The server accepted the connection and then closed it during the TLS handshake. This often means a firewall, load balancer or rate limit dropped Xitoring's connection, or the service is restarting. Check the server or proxy logs for the monitoring nodes' IP addresses. |
| STARTTLS not offered by the server | The server didn't offer STARTTLS. Enable TLS on the mail server for that port, or check whether the port speaks TLS from the start (465, 993, 995) and switch the protocol to HTTPS / TLS. |
| STARTTLS failed | The server offered STARTTLS but rejected the upgrade. Check the mail server's TLS settings and logs, and that the certificate and private key are configured for that service. |
| TLS handshake failed | The TLS connection couldn't be set up. Check that the port really speaks TLS (a STARTTLS port needs a STARTTLS protocol), and that the server supports current TLS versions and ciphers. |
| Certificate verification failed | The certificate isn't trusted. The cause includes the reason, for example a self-signed certificate or a hostname mismatch. Install the full certificate chain, including intermediate certificates, use a certificate from a trusted authority, and make sure the hostname of the check is listed in the certificate's Common Name (CN) or Subject Alternative Names (SAN). |
| Certificate expired | The certificate is past its expiry date. Renew it and install the new certificate on the server, then restart or reload the service so it uses it. |
| Unknown host | The hostname doesn't resolve. Check the spelling and the DNS records of the hostname. |
Tips
A mail server often uses one certificate for several ports. After a renewal, reload every service that uses it, such as the SMTP and the IMAP server, so that all ports serve the new certificate.