Topic

Private PKI

Many organisations run their own CA for internal servers, users, devices and services. Its certificates are trusted only by machines you configure to trust its root.

This hub covers a two-tier design with an offline root, guarding CA keys with HSMs and key ceremonies, distributing your root safely, mutual TLS and identities for machines.

The big picture: PKI explained

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

PKI explained

Public vs private PKI: which do you need?

Public vs private PKI comes down to who must trust your certificates. A public PKI uses certificate authorities that every browser and operating system already trusts, under strict shared rules. A private PKI is your own CA, trusted only by devices you configure. Use public certificates for anything outsiders reach, and private ones for internal services, devices and people.

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.

PKI explained

PKI best practices: a checklist

PKI best practices come down to eight habits: know every certificate and its owner, automate renewal with ACME as lifetimes shrink, keep private keys in hardware and out of code, keep the root offline, watch revocation and Certificate Transparency, set CAA records, prepare for post-quantum change, and write down and audit your rules.

Understand it: handbook chapters

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

Chapter 22

A CA of your own: private two-tier PKI

A private CA lets you issue certificates for internal systems under your own rules, built safely as an offline root plus an online issuing CA with clear policies and templates.

  • Expert
  • IT ops
  • Developer

Chapter 21

Guarding the keys: HSMs and key ceremonies

A CA is only as trustworthy as its private keys, so they live in certified hardware, are created in witnessed ceremonies and are used only under multi-person control.

  • Expert
  • IT ops
  • Leader

Chapter 23

Both sides show ID: mutual TLS

In mutual TLS the client also proves who it is, with a certificate and a signature from its private key, so both ends are authenticated before any data flows.

  • IT ops
  • Developer
  • Expert

Chapter 25

Machines with passports: device identity

A device certificate, installed at the factory with its private key locked in secure hardware, lets a machine prove what it is and who made it, for its whole life.

  • IT ops
  • Developer
  • Expert

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 set up mutual TLS (nginx and curl)

You will have an nginx endpoint that accepts only clients holding a certificate from your own client CA, lets in only the clients you name, and is tested with curl.

  • nginx
  • Linux
  • Windows

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

CSR decoder

Check a certificate signing request before you send it to a CA.

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.