What a TLS certificate actually proves
A TLS certificate is often described as proof that a website is "secure". That is not quite right. A certificate proves a narrower and more useful thing: the party you are talking to holds the private key corresponding to the public key in the certificate, and a certificate authority was willing to sign a statement that this key belongs to a particular name.
Everything else — whether the site is honest, whether the code is safe, whether the company behind it is trustworthy — is outside the certificate. Confusing those things is how people end up trusting a phishing site with a valid padlock.
The three claims
A typical certificate contains a public key, one or more names (the subject alternative names), a validity period, and a signature from an issuer. When your browser connects, it checks three things:
- The chain. The issuer must chain to a root certificate that your trust store already trusts.
- The name. The hostname you asked for must appear in the certificate's SAN list, and wildcard matching has rules.
- The key. The server must prove it holds the private key, usually by signing part of the handshake.
If all three pass, the browser knows that the key belongs to the name. It does not know that the server is patched, that the application is free of bugs, or that the operator is not collecting your keystrokes.
Issuance is a control, not a vibe
The CA's job is to verify that the person requesting the certificate controls the name. For domain-validated certificates, that usually means answering an HTTP challenge, publishing a DNS record, or completing a TLS handshake on port 443. Once that control is demonstrated, the CA signs the key.
This is why certificate transparency logs matter. Every publicly trusted certificate is supposed to be logged, which gives researchers and defenders a way to notice a certificate for their domain that they did not request. It is not a prevention mechanism, but it shortens the window between a mis-issuance and someone noticing it.
Revocation is the messy part. CRLs are large, OCSP has privacy and availability problems, and not every client checks either one. Short-lived certificates and OCSP stapling paper over some of this, but they do not make revocation instantaneous. If you need to react to a compromised key quickly, you need a plan that does not depend on every client in the world refreshing a cache at the same moment.
What to do in practice
- Automate issuance and renewal. A certificate that expires at 3 a.m. on a Saturday is an outage with a calendar invite.
- Monitor expiry from outside the server, not just from the process that renews it.
- Use CAA records to limit which CAs may issue for your domain. It is a small control with a good return.
- Keep private keys out of backups and out of chat. If a key leaks, rotate it; do not wait for the expiry date.
- Do not treat TLS as application authentication. A valid certificate says nothing about which user is making the request.
A padlock means the connection is encrypted to a named party. It does not mean the party deserves your password.
The certificate is a building block, not a verdict. It is remarkably good at the one thing it was designed to do: bind a name to a key in a way that is hard to forge without leaving a trail. The rest of the security argument has to be made separately, and usually in code that the certificate never sees.