The web Certificates 4 min read
What is a digital certificate?
Your browser connects to bank.example, and the server hands over a certificate. Does that prove the bank is trustworthy?
-
It ties a name to a key
A certificate says “this public key belongs to
bank.example”. A certificate authority, someone your browser already trusts, checked that whoever asked for it really controls that name, then signed it.It says nothing about whether the bank is honest. It proves this server controls this name.
Someone your browser trusts signs the certificate. Your browser checks it before showing the padlock. In short A certificate proves a server controls a name, nothing more.
-
The lines that matter
The name must match the address you asked for. The issuer must be an authority on your browser’s built-in list. The dates must cover today; certificates are short-lived on purpose, often 90 days, so a stolen key stops working soon.
The public key sets up the encrypted connection; only the real server has the matching private key. And the issuer’s signature covers the whole certificate, so changing one character breaks it.
In short Name, issuer, dates, key, signature.
-
When the browser refuses
A certificate for
bank-example.comwhen you visitedbank.examplegets a warning: wrong name. So does one that expired yesterday, or a self-signed one, because anyone can make a self-signed certificate for any name.If the key was swapped after signing, the signature no longer matches. Expiring in ten days is fine; not yet expired is all that counts.
In short If any one check fails, you get a warning instead of the page.
What a certificate can’t tell you
A phishing site at paypa1-login.com can get a perfectly valid certificate for that name, free and in minutes. Every check passes, so the browser doesn’t warn.
The certificate proves the server controls paypa1-login.com. It can’t tell you that’s the wrong name. Reading the name is still your job.
Keep this
A certificate proves a server controls a name. Check the name, the dates and who signed it.
It doesn’t prove the site is honest, or that it’s the name you meant. Phishing sites get valid certificates too.- Name
- Must match the site you asked for.
- Dates
- Must be valid today.
- Signature
- Must trace back to an authority your browser trusts.
- Limit
- It proves control of a name, not honesty.
Questions worth carrying
Who decides which certificate authorities browsers trust?
Browser and operating system makers keep root programs with strict rules, and remove authorities that break them.
Why are certificates so short-lived now?
If a key leaks, a short life limits the damage. Automation makes frequent renewal painless.