✳ The reference desk / In practice

PKI

The set of roles, rules and systems that issue, check and revoke certificates, so that a public key can be tied to a name others will trust.

Public key infrastructure

What it means

A signature or an encrypted session is only as good as your knowledge of whose key is on the other side. A public key infrastructure supplies that knowledge. A certificate authority (CA) signs certificates that tie a key to a name. Everyone who trusts the CA's root can check those certificates.

The work is divided to protect the root. The root CA key is kept offline and signs only a few issuing CAs. The issuing CAs are online and sign the certificates that servers and devices use. A registration authority checks that each request is genuine. When a key is stolen, the CA revokes its certificate, and clients learn of it from a revocation list or a status service. A PKI is as trustworthy as its weakest issuing process.

The idea at a glance / Data

A PKI splits the work so the root key can stay offline.

Read who does what when Meridian issues one console certificate, and who acts when the key behind it is lost.

Meridian's example PKI, the set of roles and rules that issues certificates. A CA, or certificate authority, signs certificates. A registration authority, or RA, checks requests. The root CA is the top of the chain. An issuing CA is a CA the root has signed. An HSM, or hardware security module, holds a key marked so that it cannot be exported. A request arrives for a new console certificate. Later, at 08:10, a laptop that held that console's private key is reported missing, with six months left on the certificate.

PKI: Read who does what when Meridian issues one console certificate, and who acts when the key behind it is lost. The explanation below describes the relationships.Meridian PKI · four rolesOne request, then one lost keyRoot CA · offlineSigns only the issuing CAKey in an HSM, off the networkRegistration authorityChecks the request is genuineForwards it · signs nothingIssuing CA · onlineSigns the console certificateOne name, one keyRevocation after the loss08:10 key reported missingCA revokes by serial numberROOT STAYS OFFLINE

READ THE PICTURE

Four roles, one chain

The RA checks a request. The issuing CA signs the certificate. The root signs only the issuing CA and stays offline. A lost key's certificate is revoked by serial number.

Keep in mindThis is one common two-tier design, not the only one. It does not show how clients fetch revocation status, or what they do when that status is missing or stale. A certificate from this PKI ties a key to a name. It does not give the console permission to send any command.

Read the complete example
  1. Four roles, one chain. The RA checks a request. The issuing CA signs the certificate. The root signs only the issuing CA and stays offline. A lost key's certificate is revoked by serial number. The root CA is the trust anchor. Its certificate is usually self-signed, and devices trust it because it was installed on them. Its private key stays offline in an HSM and is used only to sign issuing CA certificates and its own revocation list. The issuing CA is online and signs the certificates that consoles and servers use, each tying one name to one key. If the issuing CA is compromised, the root can revoke it, and nobody has to replace the root on every device. In this design the RA confirms who is asking and that they control the name, then forwards the request. It never signs. When the laptop is reported missing at 08:10, the issuing CA revokes the console certificate by its serial number. Clients learn of that from a signed revocation list (CRL) or by asking for the status of one certificate (OCSP). Public web CAs now must publish CRLs, and many have stopped running OCSP. Until a client checks, it may still accept the revoked certificate.

This is one common two-tier design, not the only one. It does not show how clients fetch revocation status, or what they do when that status is missing or stale. A certificate from this PKI ties a key to a name. It does not give the console permission to send any command.

Diagram references: RFC 5280: certificates, CAs and revocation lists · RFC 6960: Online Certificate Status Protocol · NIST glossary: registration authority

AN ILLUSTRATIVE SCENARIO

A manufacturer with its own internal CA

A manufacturer sets up an internal CA to give certificates to factory equipment. To save time, the root key is on the same online server that issues certificates, and one administrator approves and signs requests. An audit asks what would happen if that server were compromised. The answer is that every certificate in every factory would need replacing. The company builds an offline root, an online issuing CA beneath it, and a rule that the person who approves a request is not the one who operates the CA.

Put it to work

  1. Keep the root key offline and use it only to sign issuing CAs. Record who can reach it and how.
  2. Separate checking a request from signing it, and keep certificate lifetimes short so mistakes expire.
  3. Decide how you will revoke, how clients will find out, and what a client does when it cannot get an answer.

How to check your work

Issue a test certificate, revoke it, and connect with it to a system that should refuse. Then block the status service and see whether that system refuses or lets the connection through.

Connect the ideas

  • Certificate

    A signed document that binds a public key to a name, such as a server hostname, and states who issued it and for how long it is valid.

  • Digital signature

    A value made with a private key over some data. Anyone holding the matching public key can check it to confirm the data is unchanged and which key signed it.

  • Secrets management

    Storing, rotating, and auditing passwords, keys, and tokens so they are not copied into chat or source.

  • TLS

    A protocol that encrypts and integrity-protects an application conversation and checks a certificate for a name.

Explore a field lesson

Find your next idea.

Tip: press / to open search. Escape closes this window.