“Ask the PKI team”, “it’s a PKI problem”, “we run our own PKI”. The word comes up in every conversation about certificates, almost never with its definition.
A PKI is neither a piece of software nor a protocol. It is everything needed to answer a single question: does this public key really belong to whoever is presenting it? This article describes its parts, how they fit together, and the places where the whole thing breaks.
The problem: a public key does not say whose it is
When your browser connects to www.example.com, the server sends it a public key. The mathematics of TLS guarantee that you are talking to the holder of the matching private key, and to nobody else. They do not say who that holder is. An attacker sitting on the network can send their own key: the traffic will be encrypted, but with them.
So a third party has to vouch: “this key really is the one for www.example.com”. Three words describe the arrangement:
- the certificate is the statement: a public key, a name, dates, and the third party’s signature;
- the certificate authority (CA) is the third party that signs;
- the PKI (Public Key Infrastructure) is everything else: what makes it possible to issue that statement, verify it, renew it and withdraw it.
A passport is a good picture of it. The passport is the certificate, the state that issues it is the authority, and the border officer who checks it has a list of the states they recognise. The PKI is the whole system: the offices, the issuing rules, the list of recognised states and the register of stolen passports.
The parts of a PKI
| Part | What it does | Example |
|---|---|---|
| Root authority | The starting point of trust. Its certificate is signed by itself | ISRG Root X1 (Let’s Encrypt), your company’s root |
| Intermediate authority | Signs certificates day to day, on behalf of the root | The issuing authorities of Let’s Encrypt, DigiCert or Sectigo |
| Registration authority | Checks who is asking, before the authority signs | Domain control checks in ACME, the PKI team’s portal |
| Certificate | Binds a public key to a name, for a limited time | The one for www.example.com |
| Trust store | The list of accepted roots, on the side that verifies | The ones in Windows, macOS, Firefox, Java |
| Revocation | Withdraws a certificate before it expires | CRLs, OCSP responses |
| Certificate policy | The rules: who gets what, for how long, after which check | The CA/B Forum requirements, your PKI’s internal document |
A PKI is therefore as much an organisation as a technology: keys, but also rules, checks, and people who answer for them.
The chain of trust
A root authority almost never signs your certificate itself. It signs intermediate authorities, which sign the end certificates.
There is a reason for this split: the root’s private key is the most valuable secret in the PKI.
- The root stays offline. Its key lives in a hardware module (HSM), in a safe, with no network. It is brought out a few times a year, during a witnessed ceremony, to sign an intermediate authority or a revocation list.
- Intermediate authorities work online. They sign thousands of certificates a day. If one is compromised, the root revokes it and signs another.
- Changing a root takes years. A public root is installed in billions of devices, many of which no longer receive updates. So it is exposed as little as possible.
Lifetimes follow the same logic: around twenty years for a root (ISRG Root X1, the Let’s Encrypt root, is valid from 2015 to 2035), a few years for an intermediate authority, and 200 days at most, 47 in 2029, for a public site’s certificate.
How a client verifies a certificate
- The roots are already here, shipped with the system or the browser
- 1. Sends its certificate and the intermediate
- 2. Is the requested name in the certificate, are the dates right?
- 3. Is the certificate signed by the intermediate?
- 4. Is the intermediate signed by a root?
- 5. Is that root in my trust store?
- Four yeses: the connection goes on. A single no: it is refused
Three points are worth remembering:
- The server sends its certificate and the intermediates, not the root. The client either already has it or does not trust it: sending it would change nothing.
- Every link is checked. Its signature is verified with the public key of the link above. The client also looks at its dates, its right to sign other certificates (the
CA:TRUEextension) and, depending on the client, its revocation status. - One failure is enough. A missing or expired intermediate invalidates everything below it, even if the site’s certificate is flawless.
Looking at a site’s chain
One command shows the chain a server presents:
openssl s_client -connect letsencrypt.org:443 -servername letsencrypt.org </dev/null
Here is the useful part of the response, recorded in November 2026:
Certificate chain
0 s:CN=letsencrypt.org
i:C=US, O=Let's Encrypt, CN=YE2
1 s:C=US, O=Let's Encrypt, CN=YE2
i:C=US, O=ISRG, CN=Root YE
2 s:C=US, O=ISRG, CN=Root YE
i:C=US, O=Internet Security Research Group, CN=ISRG Root X2
3 s:C=US, O=Internet Security Research Group, CN=ISRG Root X2
i:C=US, O=Internet Security Research Group, CN=ISRG Root X1
On each link, s: is the subject (who the certificate belongs to) and i: the issuer (who signed it). The issuer of one line is the subject of the next: that is the chain.
This one has four links instead of three, because of cross-signing. Root YE is a recent root, still missing from many trust stores. So it gets itself signed by an older root, ISRG Root X2, which is itself signed by ISRG Root X1, present everywhere. A recent client stops at the first root it knows. An old client climbs all the way to the oldest.
For an internal authority, the same check can be done offline:
openssl verify -CAfile root.pem -untrusted intermediate.pem www.example.com.crt
# www.example.com.crt: OK
Every piece of software has its own trust store
There is not one trust store, but dozens. Windows, macOS, Android and iOS each have theirs. So do Linux distributions, most often in /etc/ssl/certs. Firefox and Chrome ship their own list, as do Java (the cacerts file), Node.js and many Python libraries.
The consequence: a certificate your browser accepts may be refused by an application, a container or an old appliance. With a public authority, the gap is rare. With an internal authority, it is the first thing to deal with.
Public PKI, private PKI
Both work the same way, with the same mathematics. What changes is who trusts them, and who sets the rules.
| Public PKI | Private (internal) PKI | |
|---|---|---|
| Who runs it | Recognised authorities: Let’s Encrypt, DigiCert, Sectigo, GlobalSign… | Your company, or a managed service acting for it |
| Who trusts it | Every browser and system, with nothing to install | Only the machines where you installed your root |
| Who sets the rules | The CA/B Forum and browser vendors, with yearly audits | You |
| Certificate lifetime | 200 days at most since March 2026, 47 in 2029 | Whatever you decide |
| Public record | Every issuance is logged in Certificate Transparency | None |
| Uses | Sites and APIs open to the Internet | Internal services, mTLS, VPN, corporate Wi-Fi, workstations, appliances |
The most common tools for a private PKI are Microsoft AD CS, HashiCorp Vault, step-ca, EJBCA, AWS Private CA and, on Kubernetes, cert-manager.
The rule for choosing is simple:
- A public name, visited by machines you do not control: public PKI. It is the only one those machines accept with nothing to install.
- Machines you administer, talking to each other: a private PKI fits, and is sometimes the only option. A public authority is not allowed to sign an internal name such as
intranet.local, or a private IP address.
That covers mTLS between your services or with a third party, VPNs, corporate Wi-Fi or a service mesh.
A private PKI is no weaker. It is entirely your responsibility: protecting the root, distributing its certificate everywhere, publishing revocation, renewing on time. No third party will come and point out something you forgot.
The life cycle of a certificate
Public or private, a PKI takes every certificate through the same steps.
- 1. RequestPrivate key and CSR.
- 2. VerifyDomain or identity.
- 3. IssueThe authority signs.
- 4. InstallWith the chain.
- 5. RenewBefore expiry.
- Request. You generate the private key where it will be used, then a CSR carrying the public key and the names.
- Verify. The authority checks that the domain is yours (domain validation), and sometimes your organisation’s identity (OV and EV certificates).
- Issue. It adds the dates and its name, then signs.
- Install. The certificate joins its private key on the server, along with the intermediate certificates.
- Renew. A program takes care of it (ACME), or a person does, warned by an alert.
If the private key leaks before expiry, the certificate is revoked and replaced without waiting.
Where a PKI breaks
PKI outages look alike: the site’s certificate is valid, and yet the connection is refused. The fault is higher up the chain, or on the side that verifies.
- The intermediate certificate is missing on the server. This is the most common mistake. The browser sometimes copes, because it has cached the intermediate or knows how to fetch it.
curl, Java or a mobile app fail, with a message such asunable to get local issuer certificate. The fix is one line: install the full chain (fullchain.pem), not the certificate alone. - An authority’s certificate expires. Roots and intermediates have an end date too. On 30 May 2020, the AddTrust External CA Root expired: perfectly valid certificates were refused by old versions of OpenSSL and GnuTLS. On 30 September 2021, the same thing happened with DST Root CA X3, the root Let’s Encrypt relied on to be recognised by older devices.
- The root is not in the right store. The classic case with an internal PKI: the root was deployed to workstations, and forgotten in the container image, Java’s
cacertsor the phones. - An authority loses the browsers’ trust. DigiNotar in 2011 after a breach, Symantec in 2017-2018, Entrust in 2024 after repeated compliance failures. There is nothing wrong with your certificates, but you have to change authority, at once or at the next renewal, on the timetable the browsers set.
- The revocation list is no longer published. A CRL has an expiry date of its own. In an internal PKI whose root is offline, it only takes nobody bringing the key out to sign the next one: strict clients then refuse every certificate in the chain.
- An authority’s key leaks. Everything it signed becomes suspect at once. That is why HSMs, ceremonies and offline roots exist.
What this changes for tracking your certificates
Knowing which PKI sits behind a certificate changes how you track it.
- Certificates from a private PKI are invisible from outside. They appear neither in Certificate Transparency nor in a scan run from the Internet. If nobody adds them to the inventory, nobody will see them expire.
- Authority certificates expire too. An internal intermediate authority that reaches its end date takes every certificate it signed down with it, on the same day. And replacing a root means redistributing it to every trust store: that is prepared months ahead.
- The issuer is worth recording. The day an authority is removed from browsers, or switches intermediate, the only useful question is: which certificates are affected?
PkiZen is not a PKI: it issues and signs nothing, and holds no keys. It tracks what your PKIs produce, whatever the authority:
- the certificates on your public names are read by scanning, exactly as your visitors receive them;
- internal certificates are imported through their public part (PEM), including those of your intermediate authorities and your root, with a reminder you can set up to 365 days before expiry;
- the issuer of every certificate is recorded, and the inventory can be searched and sorted by issuer.
In summary
- A PKI is the whole set (authorities, rules, trust stores, revocation) that makes it possible to bind a public key to a name.
- Trust starts from an offline root, goes through intermediate authorities and reaches your certificate: that is the chain of trust.
- The client climbs that chain up to a root in its store. One missing, expired or unknown link is enough to refuse everything.
- Public PKI for what is open to the Internet, private PKI for what you administer. In the second, everything rests on you: the root, its distribution, revocation, renewals.
- Authority certificates and internal certificates expire like any other, but nobody sees them from outside: the inventory has to carry them.