Course contentsShow
← Security
Lesson 177 of 3,0524. Asymmetric Cryptography and PKIFree lesson

Certificate Chains and Hierarchies

Learn how certificates form trust chains from end-entity through intermediate CAs to trusted root certificates.

Certificate Chains and Hierarchies

What You'll Learn

You'll learn how digital certificates form a linked chain of trust from your website's certificate all the way up to a universally trusted root authority.

Why Certificates Need Chains

A single certificate isn't automatically trustworthy. After all, anyone can create a certificate claiming to be any website. The solution? Trust chains – a hierarchical system where certificates vouch for other certificates, all leading back to a pre-trusted authority.

How Certificate Chains Work

Think of it like a letter of recommendation:

  1. Root Certificate (Self-signed): A universally trusted Certificate Authority (CA) at the top. Your operating system and browser come pre-loaded with these root certificates. They're like supreme court justices – trusted by default.

  2. Intermediate Certificate(s): Issued by the root CA to delegate signing authority. Think of these as authorized representatives who can vouch for others on behalf of the root.

  3. End-Entity Certificate (Leaf): Your website's actual certificate, signed by an intermediate CA. This is the certificate your server presents.

Verification Walk

When your browser connects to https://example.com, it receives the website's certificate and walks up the chain:

  • Website cert signed by Intermediate CA? ✓
  • Intermediate CA cert signed by Root CA? ✓
  • Root CA in my trusted store? ✓
  • Chain valid! Connection trusted.

If any link breaks (expired, revoked, unknown signer), the entire chain fails and you see security warnings.

Why Use Intermediates?

Root private keys are kept offline in ultra-secure facilities. Intermediate CAs handle day-to-day signing, limiting damage if compromised – the root can simply revoke that intermediate and issue a new one.

Key Takeaway: Certificate chains establish trust by creating a verifiable path from an end-entity certificate through intermediate CAs back to a pre-trusted root certificate, with each level cryptographically signing the one below it.