PKI explained
PKI architecture
The short answer
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.
- Level
- Practitioner
- Reading time
- About 11 minutes
On this page
- What is PKI architecture?
- What is a single-tier PKI?
- What is a two-tier PKI hierarchy?
- What is a three-tier PKI hierarchy?
- Which PKI hierarchy should you choose?
- Where do the CP and CPS fit in?
- Where do HSMs fit in a PKI architecture?
- How long should each CA certificate last?
- How do publication points and revocation fit in?
- How do name constraints and cross-signing shape the design?
- What are the most common PKI architecture mistakes?
- Where to go next
- Frequently asked questions
- Keep going
A PKI is rarely one certificate authority. It is a small family of CAs, arranged so that the most valuable key is used least and every other key can be replaced. That arrangement is the architecture. It decides how much damage one stolen key can do, how quickly you can recover, and how much work the PKI is to run for the next twenty years. This page is about building and defending a PKI, not attacking one.
What is PKI architecture?
A complete design answers eight questions. The PKI components page describes each part; here they are design decisions:
- Trust anchor: which root certificate, and how it reaches every trust store.
- Hierarchy: how many tiers of CAs sit below the root.
- Enrolment: who may request what, through templates, a registration authority, ACME or directory enrolment.
- Publication: where clients fetch issuer certificates and CRLs.
- Revocation: CRLs, and OCSP where still needed.
- Key protection: HSMs and key ceremonies.
- Policy: the CP and CPS.
- Monitoring and audit.
The biggest choice is the hierarchy, so that is where this page starts.
What is a single-tier PKI?
In a single-tier (one-tier) PKI, one root CA signs end-entity certificates directly. The chain is short: the leaf and the root, nothing else.
That simplicity has a price. A CA that issues every day needs its key every day, so the root must stay online. If that key is stolen, there is nothing above it to revoke it. Every certificate it issued is suspect, and the root must be removed from every trust store it was installed in, one device at a time. You also cannot separate purposes: one key signs server, user and device certificates alike.
Public CAs are not allowed to work this way. The CA/Browser Forum Baseline Requirements (section 6.1.7) say that root private keys “MUST NOT be used to sign Certificates except” in a few listed cases, such as the root’s own certificate, subordinate CA certificates and cross-certificates. That is why every publicly trusted server certificate is issued by an intermediate.
Use a single tier for: labs, short-lived test environments and closed systems with a handful of certificates that you could rebuild in an afternoon.
What is a two-tier PKI hierarchy?
A two-tier PKI splits the work. An offline root CA signs only the certificates of one or more issuing CAs, plus its own CRL. The issuing CAs are online and sign end-entity certificates every day.
Microsoft’s AD CS documentation gives the reason in one line: “If your root CA is compromised, all CAs in the hierarchy and all certificates issued from it are considered compromised.” Keeping the root disconnected and letting subordinate CAs do the issuing protects it.
What the second tier buys you:
- Recovery without touching clients. If an issuing CA’s key is stolen, the root revokes it and signs a replacement. The root, and the trust installed on every device, survive.
- Separation by purpose. Separate issuing CAs for servers, users and devices, each with its own templates, can be revoked one at a time.
- Hard limits in the certificate. The issuing CA’s certificate carries
pathLenConstraint0, so it cannot create further CAs (RFC 5280 section 4.2.1.9). It can also carry Name Constraints that limit it to your own namespaces (RFC 5280 section 4.2.1.10).
The duty that comes with it: the root still publishes a CRL with a nextUpdate date. Someone must bring the root out to sign a fresh one before that date, every time, for the life of the root (private CA).
Two tiers suit most organisations, and mirror the public web, where roots stay offline and intermediates issue (certificate chains).
What is a three-tier PKI hierarchy?
A three-tier hierarchy adds a layer between the root and the issuing CAs. Microsoft’s AD CS documentation describes it: “An intermediate CA is often referred to as a policy CA because it’s typically used to separate classes of certificates that are distinguished through policies”, for example by “the level of assurance that a CA provides or the geographical location of the CA”. The root signs the policy CAs, each policy CA signs its own issuing CAs, and the issuing CAs sign end-entity certificates. Policy CAs are often kept offline, like the root.
A third tier earns its place when branches of your PKI really live under different rules:
- Different assurance levels, such as smart-card sign-in for administrators on one branch and Wi-Fi device certificates on another, each with its own certificate policy.
- Separate legal entities or regions, where a subsidiary or a country team runs its own issuing CAs under its own policy, or answers to a different regulator.
- Delegated operations, where you want to revoke or hand over a whole branch in one step, without touching the root.
Its costs are real. You now keep two offline tiers, which means more ceremonies, more key custodians and more CRLs whose nextUpdate can quietly lapse. Chains get longer, so servers send more certificates and clients build longer paths. A simple test: if you cannot name the different policies the middle tier separates, you do not need it.
Which PKI hierarchy should you choose?
| Single-tier | Two-tier | Three-tier | |
|---|---|---|---|
| Root key | Online, used every day | Offline, used only in ceremonies | Offline, and so are the policy CAs |
| If an issuing key leaks | Replace the root everywhere | Revoke one issuing CA from the root | Revoke one issuing CA, or a whole branch |
| Offline CAs to look after | None | One | Root plus every policy CA |
| Certificates a server sends | Leaf only | Leaf and issuing CA | Leaf, issuing CA and policy CA |
| Separate policies per branch | No | Per issuing CA | Per policy CA, with issuing CAs under each |
| Typical fit | Labs and tests | Most organisations | Large, multi-entity or regulated PKIs |
In short:
- Choose two tiers by default. Add issuing CAs, not tiers, when you need another purpose or region.
- Choose three tiers only when you can name the separate certificate policies, and the teams that will run the extra offline CAs and their CRLs.
- Choose one tier only for something you would happily rebuild from scratch.
- Consider a managed private CA if nobody can own ceremonies and offline keys for years (public vs private PKI).
Where do the CP and CPS fit in?
The hierarchy says who signs whom; the policy documents say what each CA may do. Both follow RFC 3647:
- A certificate policy (CP) is “a named set of rules that indicates the applicability of a certificate to a particular community and/or class of application with common security requirements”. It says what must be true.
- A certification practice statement (CPS) is “a statement of the practices that a certification authority employs in issuing, managing, revoking, and renewing or re-keying certificates”. It says how one CA makes it true.
In practice, one CP can cover several CAs, and each CA has a CPS (often one combined CP/CPS for a small PKI). Each CP gets an object identifier that CAs place in the certificate policies extension (RFC 5280 section 4.2.1.4), so applications can insist on certificates issued under a particular policy. In a three-tier design, each policy CA usually corresponds to one CP. Templates or profiles then turn the policy into concrete settings: key types, lifetimes, key usages and, above all, where the names come from (private CA).
Where do HSMs fit in a PKI architecture?
A CA is only as trustworthy as its private keys, so key protection is part of the architecture, not an add-on (guarding the keys).
- The root key lives in a hardware security module that stays offline, in a safe, between ceremonies. It is generated in a scripted, witnessed key ceremony, and unlocking it needs a quorum, such as three of five custodians’ smart cards.
- Issuing CA keys live in a network HSM, or in a cloud HSM or key management service. The HSM stops the key from being copied. It does not stop a compromised CA server from asking it to sign, so the CA server, its access and its logs need the same care.
- Backups of CA keys stay in HSM-protected form under the same multi-person control, never as a file on a backed-up virtual machine.
Public CAs must keep CA keys in modules validated to at least FIPS 140-2 or FIPS 140-3 level 3, or under a Common Criteria evaluation at EAL 4 or higher (Baseline Requirements section 6.2.7). A private PKI sets its own bar.
How long should each CA certificate last?
Lifetimes shrink down the hierarchy: the root lives longest, issuing CAs less, end-entity certificates least. Two rules keep it working:
- Each CA certificate should outlive what it signs. Renew, and preferably re-key, an issuing CA while its remaining life is still longer than the longest certificate it issues.
- Plan the root’s successor from day one. A new root must reach every trust store years before the old one expires. Public roots now have a term limit: the Chrome Root Program removes roots whose key material is more than 15 years old, phased in from 15 April 2026.
NIST SP 800-57 suggests a maximum of about one to three years for a private signature key, but calls its numbers “only rough order-of-magnitude guidelines” and asks for “serious consideration” of the risks of anything longer. Root keys are used far longer, which is defensible only because they sign rarely and stay offline in HSMs; your CP sets the real values and records why.
How do publication points and revocation fit in?
Every certificate carries addresses where clients fetch its issuer’s certificate (AIA) and its issuer’s CRL. Those addresses are part of the architecture: they must answer for as long as any certificate that contains them is in use.
- Use stable HTTP addresses that every client can reach, not an address tied to one server’s name, or a directory-only path that clients outside the domain cannot use.
- Schedule every offline CA’s CRL. An expired root or policy CA CRL can make clients that check revocation reject everything below it.
- Keep end-entity lifetimes short. Browser revocation checking is largely soft-fail, and expiry is the limit every client enforces (revocation).
How do name constraints and cross-signing shape the design?
- One purpose per hierarchy or issuing CA. Public TLS is moving that way: from 15 June 2026, Chrome's root program starts phasing out root hierarchies that are not dedicated to TLS server authentication. For a private PKI, separate issuing CAs for server, client, device and signing certificates keep extended key usages and templates narrow.
- Name Constraints let a partner trust your issuing CA without trusting it for anyone else’s names.
- Cross-signing lets one root vouch for another hierarchy’s CA, which is how you move to a new root, or join two PKIs after a merger, while old clients still find a valid path (cross-signing).
What are the most common PKI architecture mistakes?
- An online root, or a root CA running on a domain-joined virtual machine.
- A root that issues end-entity certificates in production.
- Three tiers “just in case”, with an offline policy CA whose CRL nobody renews.
- One issuing CA for everything, with broad templates that let requesters choose their own names.
- CRL and AIA addresses that point at a server that no longer exists.
- CA keys in software, copied into every backup of the CA’s disk.
- No plan for change: no root rollover date, and no route to new algorithms such as post-quantum signatures (post-quantum).
Where to go next
- The big picture: What is PKI? and how PKI works.
- Decide first: public vs private PKI, then run it with the PKI best practices checklist.
- Depth: a CA of your own, HSMs and key ceremonies, certificate chains, cross-signing and revocation.
- Build a lab: a two-tier test CA with OpenSSL, or a small CA with step-ca, then inspect the result with the chain checker.
Frequently asked questions
Can a root CA issue end-entity certificates directly?
Technically yes, and a single-tier PKI does exactly that. Public CAs may not: the CA/Browser Forum Baseline Requirements let root keys sign only a few kinds of certificate, such as subordinate CA certificates and cross-certificates, so every publicly trusted server certificate comes from an intermediate. In a private PKI it is a poor idea outside a lab, because the root key must then stay online every day.
Is a two-tier PKI enough?
For most organisations, yes. An offline root plus one or more online issuing CAs keeps the root key safe, lets you replace a compromised issuing CA without touching every device, and stays simple to run. Add a third tier only when different branches really follow different policies, such as separate assurance levels, legal entities or regions run by different teams. Every extra tier adds ceremonies, CRLs and ways to fail.
What is a policy CA?
A policy CA is the middle tier of a three-tier hierarchy. The root signs it, and it signs the issuing CAs below it. Each policy CA stands for one set of rules, for example high-assurance smart-card certificates as opposed to ordinary device certificates, or one region or subsidiary. It is often kept offline like the root, and it is only worth having when its branch follows a genuinely different certificate policy.
Should the root CA be offline?
Yes, for any PKI that matters. A root that is never connected to a network cannot be reached by an attacker who gets into your systems. Keep its key in an HSM, bring it out only in recorded ceremonies to sign issuing CA certificates and CRLs, and put the CRL renewal dates in a shared calendar, because an expired root CRL can make clients reject the whole hierarchy.
How many issuing CAs do I need?
Start with one per distinct purpose or trust boundary, and consider two per purpose if availability matters. Separate issuing CAs for servers, users and devices let you revoke or replace one without disturbing the others, and keep each one's templates narrow. Large organisations sometimes add issuing CAs per region. Each extra CA means another key, another CRL and more monitoring, so add them for a reason.
What is the difference between an intermediate CA and an issuing CA?
Intermediate CA means any CA between the root and the end-entity certificates. An issuing CA is the intermediate that actually signs end-entity certificates for servers, users and devices. In a two-tier hierarchy the only intermediate is the issuing CA. In a three-tier hierarchy the policy CA is an intermediate too, but it signs only the certificates of other CAs.
Early edition. Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? Tell us.