How a chain of trusted authorities lets you believe a public key really belongs to who it says.
PKI (public key infrastructure) is the system that lets you trust a public key. A certificate says "this key belongs to this name", and a certificate authority (CA) signs it. Your device already trusts a small set of root CAs, and trust flows down a chain from them.
The SSL/TLS page explains the handshake. This page is about the trust behind it. With public-key cryptography, you can sign with a private key and anyone can check it with the matching public key. The hard question is: whose public key is this? If an attacker swaps in their own, everything breaks.
PKI answers this with certificates. A certificate is a small signed file that holds a public key and says who owns it. The signer is a CA that you already trust. Because you cannot ship every site's key to every device, CAs form a chain: a root CA signs an intermediate CA, which signs the leaf certificate for a website.
| Field | What it holds | Why it matters |
|---|---|---|
| Subject | Who the certificate is for | The identity being vouched for |
| Subject Alternative Names (SAN) | The host names it is valid for | Browsers check the address against this list |
| Public key | The key that belongs to the subject | Used in the TLS handshake |
| Issuer | The CA that signed it | Tells the client which certificate to check next |
| Validity (not before, not after) | The dates it can be used | Limits the damage from a stolen key |
| Key usage | What the key may be used for | A server key cannot act as a CA |
| Signature | The CA's signature over all the above | Proves nothing was changed |
| Method | How it works | Weak point |
|---|---|---|
| CRL (revocation list) | Download a list of cancelled serial numbers | Lists grow large and go stale |
| OCSP | Ask the CA about one certificate | Extra delay, privacy leak, and clients often fail open |
| OCSP stapling | The server attaches a fresh, signed answer | Server must fetch and refresh it |
| Short-lived certificates | Valid for days, so revocation matters less | Needs full automation |
A simplified order. Real clients also check key usage, the chain length and certificate transparency proofs, and they may run some checks in parallel.
| Term | Meaning in easy words |
|---|---|
| PKI | Public key infrastructure: the people, rules and software that manage certificates |
| Certificate | A signed file that links a public key to a name |
| CA | Certificate authority: a body that signs certificates |
| Root CA | A top-level CA that is trusted directly by devices |
| Intermediate CA | A CA signed by the root, used for everyday issuing |
| Leaf certificate | The certificate for one site or service |
| Trust store | The list of root CAs a device or browser trusts |
| SAN | Subject Alternative Name: the host names a certificate is valid for |
| CRL / OCSP | Two ways to ask whether a certificate was revoked |
| OCSP stapling | The server attaches a fresh revocation answer to the handshake |
| ACME | A protocol that automates certificate issue and renewal |
| Certificate Transparency | Public logs of all certificates that CAs issue |
| Self-signed | A certificate signed by its own key, trusted only if you add it manually |
| Pinning | Accepting only a specific key or CA for a connection |
| Choice | We gain | We lose |
|---|---|---|
| Short-lived certificates | Less need for revocation, less damage | Requires solid automation |
| Long-lived certificates | Fewer renewals | Bigger window if the key leaks |
| Public CA | Trusted by all browsers | Cost or rate limits, public names |
| Private CA | Full control, internal names | You run and secure it |
| Pinning | Blocks mis-issued certificates | Risk of lockouts |
| Wildcard certificate | One certificate for many names | One leak exposes all of them |