# SSL certificate

What is an SSL certificate?

An SSL certificate is a small signed document that a web server presents when a client connects to it. It ties one or more hostnames to a public key, and a [certificate authority](/glossary/certificate-authority) vouches for that link with its signature. The name is historical: SSL was the predecessor of [TLS](/glossary/tls), and the certificates kept the old name after the protocol was replaced.

## How it works

A certificate follows the X.509 format. These are the fields that matter when you run a site:

- Subject: who the certificate was issued to.
- Subject alternative names: the hostnames it covers, such as `example.com` and `www.example.com`. A wildcard entry like `*.example.com` covers one level of subdomains.
- Issuer: the certificate authority that signed it.
- Validity: a start date (not before) and an end date (not after).
- Public key: the key whose private half the server proves it holds during the TLS handshake.
- Signature: the issuer's signature over all of the above.

The server sends its own certificate along with one or more intermediates. The client follows that chain up to a root certificate it already trusts, checks each signature and the dates, and compares the hostname it asked for with the names the certificate covers.

## Why it matters

Without a valid certificate there is no working [HTTPS](/glossary/https). Browsers show a full-page warning instead of your site, API clients refuse the connection, and webhooks to your endpoints fail. The certificate is what proves the encrypted connection ends at your server and not at someone in between.

## What can go wrong

- Expiry. Every certificate has an end date, and the maximum lifetime the browser industry allows keeps getting shorter, so renewal has to be automated and that automation has to keep working.
- A hostname mismatch: the certificate covers `example.com` but not `www.example.com`, or not the subdomain you just added.
- A missing intermediate certificate. Browsers can often fill the gap, but many other clients (command-line tools, API clients, other servers) reject the connection, so the site works in your browser and fails elsewhere.
- A renewed certificate that was never loaded, so the web server keeps serving the old one.

## Check it

The [SSL/TLS certificate checker](/tools/ssl-checker) opens a live connection to any domain and shows the issuer, the validity dates, the days until expiry and the hostnames the certificate covers. Ranetrace's [certificate monitoring](/features/certificate-monitoring) re-checks your certificate every hour and warns you before it expires.

Read this definition in a browser: https://ranetrace.com/glossary/ssl-certificate
