TLS certificates explained
Updated
When a site's address starts with https, the browser and the server first agree how to encrypt their conversation, and the server proves who it is with a certificate. The protocol that does this is TLS (Transport Layer Security). SSL is its old name, and people still say it.
What a certificate says
- Which names it is for, such as example.com and www.example.com
- Who vouched for it: the certificate authority that signed it
- The dates between which it is valid
- The server's public key, which the browser uses to start the encrypted connection
The chain of trust
A browser carries a short list of authorities it trusts. A site's certificate is usually signed by an intermediate certificate, which is signed by one of those authorities. The server must send the intermediate along with its own certificate. If it forgets, some browsers find it themselves and look fine, while phones, older systems and scripts fail.
Why certificates expire
A certificate is valid for a limited time, now at most about a year and often 90 days. Short lives limit the damage of a stolen key and force owners to keep their setup working. Free authorities such as Let's Encrypt renew automatically. An expired certificate is the most common failure, and it almost always means the automatic renewal stopped without anyone noticing.
Expires in 9 days -> renew now Name does not match -> the certificate is for another name Self-signed -> no authority vouches for it
The usual reasons one fails
- It has expired, or it is not valid yet because of a wrong clock
- It does not cover the name typed, for example only example.com when the site is www.example.com
- It is self-signed, so no authority vouches for it
- The server does not send the intermediate certificate
Good to know. A valid certificate proves the connection is encrypted and that the server controls the name. It does not prove the site is honest.
Related
- DNS records explainedWhat the common DNS record types (A, AAAA, CNAME, MX, NS, SOA and TXT) do, and what a TTL means for changes.
- Who hosts a website, and what a CDN hidesHow a domain name leads to a hosting network, why the answer is often a content delivery network, and what you can and cannot learn from it.
- A domain health checklist: what to check and whyThe handful of public records that say whether a domain is set up sensibly for email, registration and DNS, and what each one protects against.
- DNSSEC explainedHow DNSSEC signs a domain's DNS answers so forged ones can be spotted, how the chain of trust works, and why a broken setup is worse than none.
- Redirects and security headersWhat happens between typing a website's name and seeing the page, and the few response headers that switch on browser protections.