Skip to content

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.

Check a website's certificate