NETLEARN
Lesson 02Cryptography

Certificates & the Chain of Trust

A public key by itself proves nothing. Anyone can publish one and claim any name. Certificates fix this: a certificate authority vouches for the name, and a chain of signatures links the server you are talking to back to a root your browser already trusts.

Layer
Layer 5/6 · trust, before the tunnel
Reference
RFC 5280
Steps
5
Clientbrowser
Serversite + certificate
Certificate Authoritysigns by trust
legendcautionresponsesecure / encryptedmessage in flight

Common misunderstandings

  • The chain must be complete. If the server forgets to send the intermediate, browsers fail even though the leaf itself is fine.
  • Trust is in the roots, not the leaf. Installing a certificate is not enough; it has to chain up to a root the client already trusts.

Key notes

What it binds
A name, a public key, a validity window, and who signed it. That is the essence of an X.509 certificate.
The chain
Leaf certificate → intermediate CA → root. The root is not sent because the browser already has it.
SAN
Subject Alternative Names is the list of hostnames the certificate is valid for. SNI and the URL are checked against it.
Self-signed
A self-signed certificate is signed by its own key. It works locally but only machines that explicitly trust it will accept it.