Topic

Chains and trust stores

A client trusts a server's certificate only if it can build a chain from that certificate, usually through one or more intermediate CAs, to a root that is already in its trust store. A root is trusted because it is in the store, not because it signed itself.

Most "unable to get local issuer certificate" and "unknown authority" errors come from a broken chain or a missing root. This hub has the explanations, the fixes for each tool and the guides for trusting a private CA safely.

The big picture: PKI explained

Short overview pages in plain words, each linked to the chapters for depth.

PKI explained

What is a certificate authority (CA)?

A certificate authority (CA) is an organisation or system that checks who controls a name or key, then signs digital certificates that bind the two together. Browsers trust a public CA only because its root certificate is in their trust stores, after audits and under strict rules. Organisations also run private CAs for internal use.

PKI explained

How does PKI work? Step by step

PKI works in two phases. First, a certificate authority (CA) checks that you control a name and signs a certificate binding your public key to it. Then, on every connection, the other side checks that certificate's chain up to a root it already trusts, and you prove you hold the matching private key.

PKI explained

PKI architecture: one-, two- and three-tier hierarchies

PKI architecture is the way certificate authorities are arranged and protected. Most designs are hierarchies: a single-tier root that issues everything, a two-tier design with an offline root and online issuing CAs, or three tiers with policy CAs in between. Two tiers suit most organisations; policies, HSMs and revocation services complete the design.

Understand it: handbook chapters

Plain words first, then the real mechanism, what it looks like at work and why it matters.

Chapter 13

Certificate chains and path validation

Servers must send their leaf and intermediate certificates; clients link them by name and key identifier up to a trusted root and check every signature, date and constraint.

  • Developer
  • IT ops
  • Expert

Chapter 7

Whose key is it? Binding identity to keys

Encryption and signatures only help if you use the right person's public key, so something you already trust must vouch that a key belongs to a name.

  • Beginner
  • Developer
  • IT ops

Chapter 18

Famous failures and what changed

Real PKI failures, from a hacked CA to expired certificates, follow one pattern: a weak point breaks trust, someone notices, and the rules or practices change.

  • IT ops
  • Expert
  • Leader

Do it: how-to guides

Step-by-step, with real commands and a way to check it worked.

How to trust a private root CA on Linux

Your Linux server, desktop or container image trusts your organisation's private root CA system-wide, and you know which programs keep their own list.

  • Linux
  • Docker

How to use HTTPS on localhost with mkcert

Create a locally trusted certificate, run an HTTPS development server, and verify which CA each browser, WSL session or container actually trusts.

  • Windows
  • macOS
  • Linux
  • Node.js

Fix it: error pages

The exact messages tools and browsers print, with likely causes and safe fixes.

Check yours: browser tools

They run in your browser. Nothing you paste is sent anywhere.

Tool

Chain checker

Paste a chain and see which link is missing, expired or out of order.

Tool

Paste your error

Paste a certificate error from any tool and get the page that explains it.

The big picture: crash course

Short lessons of about nine minutes each, with check questions.

Look it up: glossary terms

Every term in plain words, linked to its full entry.