[Certificate Fundamentals Part 5] PKI and How Trust Works: Certificate Chains, Trust Stores, Revocation, CT, and CAA

Certificate Fundamentals Part 5 PKI and How Trust Works: Certificate Chains, Trust Stores, Revocation, CT, and CAA Certificates and PKI

“It opens in the browser, but only the HTTPS check in our monitoring tool fails.”
“The private CA’s certificate is fine on Windows, but it errors out when I call it from a Linux server.”

Both are troubles that occur even though the certificate itself is correct. The cause lies in who trusts a certificate and how far back they trace it, that is, PKI (public key infrastructure) and how trust works.

In Part 4, we read the contents of a single certificate. In Part 5, we widen our view to how certificates connect to each other (the chain), what serves as the starting point of trust (the trust store), and the mechanisms that keep trust intact: revocation, CT, and CAA.


The roles of the CA, RA, and VA

PKI (Public Key Infrastructure) is the whole system in which a third party vouches for the link between a public key and its owner so that anyone can verify it. At its center is the certificate authority (CA), whose inside is easiest to understand when divided by role.

Diagram showing that an applicant applies to the CA's RA (registration authority) and is reviewed, the IA (issuing authority) signs with the CA's private key and issues the certificate, the VA (validation authority) publishes revocation status through CRL and OCSP, and the CA is not involved when a site is opened
  • RA (registration authority): the window that receives applications and reviews them. It confirms that the applicant controls the domain (DV) and that the organization exists (OV and EV)
  • IA (issuing authority): signs applications that pass review with the CA’s private key and issues the certificate
  • VA (validation authority): publishes, through CRL and OCSP, whether a certificate has been revoked

Public CAs run these roles separately and are audited on them, while private CAs (such as AD CS) often combine them on one server.

Note that the CA is not involved every time a site is opened, and communication continues even if the CA is down. However, some products fail verification if the CRL stops being updated. Remember it this way: RA and IA work up to issuance, and VA watches after issuance.


Root CA, intermediate CA, and server certificate

CAs can form a parent-child hierarchy.

Diagram showing that the root CA (self-signed, key kept offline in an HSM), preinstalled in the device trust store, signs the intermediate CA, the intermediate CA signs the server certificate, and verification traces from the bottom up
  • The certificate of the top-level root CA is a self-signed certificate, signed by itself, and is preinstalled in the trust store of the OS or browser
  • The root CA signs the certificate of an intermediate CA, and the intermediate CA signs the user’s server certificate
  • The verifier traces the issuers in order from the server certificate, and trusts it if it reaches a root in the trust store

This is the certificate chain (chain of trust). If any single link in the chain breaks, the whole chain is not trusted.

The reason for having intermediate CAs is to protect the root CA’s private key. If a root key leaks, every device that trusts that root is affected, and replacing it takes years of trust store updates. So the root key is kept offline in an HSM (a dedicated device that protects keys) and is used only to sign intermediate CAs. The intermediate CA handles day-to-day issuance, and if a problem occurs you can revoke only the intermediate CA and rebuild it.


The server sends the intermediate certificate

Here is the answer to “it opens in the browser, but only the monitoring tool fails” from the beginning.

Diagram showing that with the correct setup the server sends the server certificate and intermediate certificate and they link to the root in the device trust store, whereas if the intermediate certificate is left out, Chrome and Windows fetch it from the AIA and Firefox fills it in from its own copies, but curl, Java, apps, and devices do not fill it in and fail with error 21

In the TLS handshake, the server sends its own certificate together with the intermediate certificate, and the client links them to a root in its local trust store. Because the trust store holds only roots, if the server does not send the intermediate certificate, the chain breaks.

The troublesome part is that the symptoms differ by device.

  • Windows and Chrome: fetch the intermediate certificate from the certificate’s AIA (Part 4)
  • Firefox: already holds the intermediate certificates of public CAs
  • openssl, curl, Java, many smartphone apps, and embedded devices: do not fill it in

As a result, it appears as “it opens in the browser, but only system integrations and monitoring fail.” On the server, configure a file that concatenates your own certificate and then the intermediate certificate (fullchain). You do not need to send the root.

Just because it opens in a browser does not mean nothing is missing. To check, use openssl or curl, which do not fill it in.


Verifying the chain

$ openssl verify -show_chain -CAfile root.crt -untrusted inter.crt server.crt
server.crt: OK
Chain:
depth=0: C=JP, ST=Tokyo, L=Chiyoda-ku, O=Example Corp., CN=www.example.com (untrusted)
depth=1: C=JP, O=Example CA Inc., CN=Example Issuing CA E1 (untrusted)
depth=2: C=JP, O=Example CA Inc., CN=Example Root CA R1

$ openssl verify -CAfile root.crt server.crt           # without passing the intermediate certificate
C=JP, ST=Tokyo, L=Chiyoda-ku, O=Example Corp., CN=www.example.com
error 20 at 0 depth lookup: unable to get local issuer certificate
error server.crt: verification failed
PS> certutil -verify -urlfetch server.crt
  • -CAfile is the root you trust, and -untrusted is the intermediate certificate along the way. depth=0 is the server certificate, and a larger number is closer to the root
  • error 20 means “the issuer’s certificate was not found,” that is, a missing intermediate certificate. On a server, suspect that you forgot to build the fullchain
  • Windows’ certutil -verify -urlfetch fetches intermediate certificates from the AIA and CRLs from the CDP, and checks the chain and revocation together

Trust stores

The answer to the second one at the beginning, “fine on Windows but an error on Linux,” is that each product has its own separate trust store.

Trust storeProducts that use itWho decidesHow to add a private CA’s root
MicrosoftWindows, IIS, .NET, EdgeMicrosoft Trusted Root ProgramDistribute to “Trusted Root Certification Authorities” with a GPO
ApplemacOS, iOS, SafariApple Root Certificate ProgramConfiguration profile (MDM)
Mozilla NSSFirefox, ThunderbirdMozilla Root Store PolicyFirefox also reads roots added to the OS (Windows and macOS)
Chrome Root StoreChrome (except the iOS version)Chrome Root ProgramIf you add it to the OS store, Chrome uses it too
Java (cacerts)Java apps, Tomcat, etc.The JDK distributorkeytool -importcert -cacerts
Linux (ca-certificates)curl, openssl, Python, etc.The distribution (originally Mozilla)update-ca-certificates (update-ca-trust on RHEL-family)

If you only distribute a private CA’s root to Windows with a GPO, it is not trusted by Linux servers, Java apps, or inside containers. You have to add it to each trust store.

Chrome started switching to its own Chrome Root Store in Chrome 105 (the default on Windows and macOS as of Chrome 108), so trust in public CAs no longer depends on the OS (Edge also uses a built-in verifier from version 112). Also, because Windows fetches roots from Windows Update when needed, servers on closed networks may lack some.


Root programs and the CA/Browser Forum

So who decides which CAs go into the trust stores, and how?

Diagram showing that the Microsoft, Apple, Mozilla, and Chrome root programs and public CAs participate and vote in the CA/Browser Forum to set the BR, public CAs undergo WebTrust and ETSI audits every year and publish the results in CCADB, and the root programs decide which CAs to include in or remove from the trust stores
  • Which CA roots go into a trust store is decided by each OS and browser vendor through its root program
  • The common foundation is the Baseline Requirements (BR) of the CA/Browser Forum, in which CAs and browser vendors participate. They set the methods for validating domains, the fields of certificates, validity periods, deadlines for revocation, and more, and are revised by vote (a ballot; for example, SC-081, which shortened validity periods, Part 6)
  • CAs undergo WebTrust or ETSI audits every year and publish the results in CCADB
  • Root programs add requirements of their own. For example, Chrome requires removing roots more than 15 years past key generation, limiting hierarchies to server authentication only, and supporting automated issuance from March 15, 2027 (Part 8)

The relationship is: the BR is the yardstick, audits do the scoring, and root programs decide pass or fail. A CA that cannot meet the standards is removed from the trust stores (real cases are shown later).


The verification steps

When a client receives a certificate, it checks the following in order.

Diagram showing that a certificate passes eight checks in order: chain, signature, validity period, name, purpose, CA constraints, revocation, and CT; an example error for a failure at each; and that openssl verify does not check name, purpose, or revocation unless you ask
StepWhat is checkedFields examinedExample failures (browser / openssl)
1Can a chain be built that reaches a root in the trust store?Issuer, Subject, AKI, SKI, AIAERR_CERT_AUTHORITY_INVALID / error 20
2Is each certificate’s signature valid?Signature value, issuer’s public keyAn invalid signature, a weak signature such as SHA-1
3Is it within the validity period?Not Before, Not AfterERR_CERT_DATE_INVALID (also caused by a device’s clock being off)
4Does the name match?SANERR_CERT_COMMON_NAME_INVALID / error 62
5Does the purpose fit?Key Usage, EKUunsuitable certificate purpose (error 26)
6Are the intermediate certificates CAs, and do they obey their constraints?Basic Constraints, Name ConstraintsAn intermediate that is CA:FALSE, a name that is not allowed
7Has it been revoked?CRL, OCSP, CRLSets, CRLiteERR_CERT_REVOKED / error 23
8Does it meet the CT requirement?SCTERR_CERTIFICATE_TRANSPARENCY_REQUIRED

Note that openssl’s verify does not check the name (-verify_hostname), purpose (-purpose), or revocation (-crl_check) unless you specify them. “OK in openssl” does not necessarily mean OK in a browser. The code shown in the details of a browser error tells you at which step it failed (Part 10).


How revocation works: CRL and OCSP

Revocation means invalidating a certificate partway through its validity period for reasons such as a leaked private key, a mistaken issuance, or a decommissioned server. The CA publishes the serial numbers of revoked certificates, and the verifier checks them.

Diagram showing that with a CRL the client fetches the periodically published revocation list from a distribution server and checks it locally, while with OCSP the client queries the OCSP responder one certificate at a time, so the CA keeps a record of which device opened which site
  • CRL (certificate revocation list): a file in which the CA signs a list of revoked serial numbers and publishes it periodically. The URL is written in the certificate’s CDP. Because the whole list is fetched at once, the CA does not learn which sites you visit, but the list tends to get large
  • OCSP: a method that asks the CA’s OCSP responder whether each certificate is valid. The URL is written in the AIA. The responses are small, but it queries on every connection, so it is slow, and the CA can tell which sites you are trying to open

Comparing ways to check revocation

MethodHow it worksAdvantageIssues and current status
CRLThe CA publishes a revocation list and the client fetches itBrowsing destinations do not leakThe list is large. Publishing is mandatory for public CAs since March 2024
OCSPThe client asks the CA about each certificateSmall responsesSlow, and browsing destinations leak. Now optional for public CAs
OCSP staplingThe server keeps the OCSP response and hands it over inside TLSClients do not need to queryRequires server configuration. Fading with the end of OCSP
CRLSets (Chrome)Google selects important revocations and distributes them to ChromeFast, and browsing destinations do not leakDoes not include all revocations
CRLite (Firefox)Distributes compressed revocation data for public certificatesEvery certificate can be judged locallyEnabled on desktop from Firefox 137. OCSP for DV certificates stopped in 142

With every method, browsers are moving toward not querying the CA on every connection. openssl and curl do not check revocation by default. In a private Windows environment, CryptoAPI fetches the CRL from the CDP and checks it, so it is assumed that devices can reach the private CA’s CRL distribution point (Part 9).


OCSP becomes optional, CRL becomes mandatory

How revocation works has changed greatly over the past few years.

  • In August 2023, the CA/Browser Forum passed Ballot SC-063. From March 15, 2024, publishing a CRL is mandatory for public CAs and OCSP is optional
  • Short-lived certificates, which do not need revocation information, were also defined (a validity of 7 days or less for certificates issued on or after March 15, 2026)
  • Let’s Encrypt ended OCSP: on May 7, 2025, it removed the OCSP URL from certificates and added the CRL URL, and on August 6, 2025, it shut down its OCSP responder

If you revoke a certificate on a test intermediate CA and check it with a CRL, you get the following (excerpt).

$ openssl crl -in ica-e1.crl -noout -text
        Last Update: Sep 26 01:02:52 2026 GMT
        Next Update: Oct  3 01:02:52 2026 GMT
Revoked Certificates:
    Serial Number: 61AEBAE25C18E503B7D26AD887492683DD3C00E5
        Revocation Date: Sep 26 01:02:52 2026 GMT
        CRL entry extensions:
            X509v3 CRL Reason Code:
                Key Compromise

$ openssl verify -crl_check -CAfile cafile.pem -CRLfile ica-e1.crl server.crt
error 23 at 0 depth lookup: certificate revoked

Permitting traffic for OCSP and configuring stapling are becoming unnecessary. For private CAs, on the other hand, it is important to keep publishing and updating the CRL. A CRL past its Next Update can lead to verification failures.


Certificate Transparency

Incidents in which a CA, by mistake or under attack, issues a certificate for someone else’s domain have happened many times (examples are shown later).

Diagram showing that the CA sends a precertificate to CT logs and receives SCTs as proof of receipt, the server presents the certificate with SCTs over TLS, the browser checks whether there are enough SCTs, and the domain owner can search with crt.sh and other tools for issuance they do not recognize

Certificate Transparency (CT) is a mechanism in which every certificate issued by a public CA is recorded in an append-only CT log that anyone can read, so that improper issuance can be found afterward (RFC 6962).

  1. Before issuing, the CA sends a draft of the certificate (a precertificate) to the logs
  2. It receives signed timestamps (SCTs) as proof of receipt and embeds them in the certificate (Part 4)
  3. The browser rejects certificates with too few SCTs

Chrome has required CT for certificates issued after April 30, 2018, Apple since October 2018, and Firefox since Firefox 135 (2025).

CT does not prevent improper issuance; it makes it impossible to hide. Finding it is the job of the domain owner.


Monitoring your own domain with crt.sh

CT logs can be searched by anyone with a free search service called crt.sh.

$ curl -s "https://crt.sh/?q=example.com&output=json&exclude=expired" \
    | jq -r '.[] | [.not_before, .issuer_name, .name_value] | @tsv'
2026-09-24T00:00:00  C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication CA DV E36  *.example.com\nexample.com
2026-07-29T22:10:08  C=US, O=SSL Corporation, CN=Cloudflare TLS Issuing ECC CA 3  *.example.com\nexample.com
2026-07-29T22:10:08  C=US, O=SSL Corporation, CN=Cloudflare TLS Issuing ECC CA 3  *.example.com\nexample.com
PS> Invoke-RestMethod "https://crt.sh/?q=example.com&output=json&exclude=expired" |
      Select-Object not_before, issuer_name, name_value

(An excerpt of the result run on September 26, 2026.)

  • The same certificate appears twice because both the precertificate and the final certificate remain in the logs
  • What to look at is the issuer (issuer_name). If you see a CA you have no contract with, or one you should not be using, investigate. To include subdomains, use q=%.example.com
  • Build a routine around it, for example by fetching periodically and notifying on differences, or by using a CT monitoring service. crt.sh sometimes does not respond when it is busy

Note: CT logs can be seen by anyone. If you put an internal host name in a public CA’s certificate, it becomes visible from outside.


CAA: declaring which CAs may issue

If CT is a mechanism for “finding it after issuance,” CAA is one for “stopping it before issuance.”

example.com. 3600 IN CAA 0 issue "letsencrypt.org; accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/123456789"
example.com. 3600 IN CAA 0 issue "amazon.com"
example.com. 3600 IN CAA 0 issuewild ";"
example.com. 3600 IN CAA 0 iodef "mailto:security@example.com"
  • CAA (RFC 8659) is a record that declares in DNS which CAs may issue certificates for that domain. How to write and look up these records was covered in Part 6 of DNS Fundamentals
  • A CA is obliged to check CAA before issuing (since September 2017). From March 15, 2026, for domains signed with DNSSEC, the CA also performs DNSSEC validation and does not treat a validation error as permission to issue
  • With accounturi (RFC 8657), you can narrow it down to an account within the CA (line 1 above). Under the BR, CAs are obliged to honor this setting from March 15, 2027 (recommended until then)

Use CT and CAA together. Also note that if you forget to fix CAA when you change CAs or start using ACM, issuance and automatic renewal will fail (Part 8).


Real cases of CAs losing trust

Finally, here are cases in which root programs actually removed a CA.

YearCAWhat happenedResult
2011DigiNotar (Netherlands)Was breached and issued more than 500 fraudulent certificates, including for *.google.com. They were used to intercept communications in IranDistrusted by browsers and OSes. Went bankrupt in September that year
2017–2018Symantec (including VeriSign, Thawte, GeoTrust, and RapidSSL)Improper issuance over many years and inadequate oversight of external issuersChrome 66 distrusted certificates issued before June 2016 and Chrome 70 the rest. The business went to DigiCert
2022–2023TrustCorReports of ties to a company that makes spywareDistrusted by Mozilla and Microsoft; Chrome 111 removed the root
2024EntrustContinued misissuance and failures in reporting and remediationFrom Chrome 131 (November 12, 2024), new issuances were distrusted. Apple and Mozilla followed. The business went to Sectigo in 2025
2025Chunghwa Telecom (Taiwan), Netlock (Hungary)Continued violations of the standards and failure to keep promises to improveFrom Chrome 139, certificates issued after July 31, 2025 were distrusted

Recently, the main approach is to let already-issued certificates be used until they expire and to reject only new issuances, judged by the SCT date. If the CA of your certificates becomes a target, move to another CA before expiration. As these cases show, “it’s a big CA, so it’s safe” is not always true.


Think about it

  1. Which trust stores contain your private CA’s root certificate? Is it trusted not only on Windows devices but also in Firefox, Java apps, Linux servers, and inside containers?
  2. You receive a report that “it opens in the browser, but only the HTTPS check in our monitoring tool fails.” What do you suspect, and with which commands do you check?
  3. Search for your own domain on crt.sh. Does the list of issuers include any CAs or host names you do not recognize? Is CAA configured?

Hint: Look at “Trust stores,” “The server sends the intermediate certificate” together with error 20 and error 21, and “Certificate Transparency” and “CAA” in this article.


Summary

  • For a CA, the RA reviews, the IA issues, and the VA publishes revocations. The CA is not involved every time a site is opened
  • Signing goes root → intermediate → server, and verification traces it in reverse. The root key is protected offline
  • The server sends the intermediate certificate. Browsers may fill it in, but curl, Java, and devices do not
  • Each product has its own trust store. Add the private CA’s root to each of them
  • For public CAs, CRL is mandatory and OCSP is optional. Private CAs must not let CRL updates stop
  • CT finds problems after issuance and CAA stops them before it. Use both together

Next time, we cover the types of certificates such as DV, OV, and EV, and the flow from creating a CSR through domain validation to issuance.


The Certificate Fundamentals series (11 parts)

All 11 parts with a reading guide: Certificate Fundamentals

  1. Why Do We Need Certificates?
  2. Cryptography basics
  3. Trying it with openssl and PowerShell
  4. Inside an X.509 certificate
  5. PKI and how trust works (this article)
  6. Certificate types and issuance
  7. How TLS works
  8. Lifecycle and automation
  9. Private PKI and the cloud
  10. Certificate troubleshooting
  11. Certificate design exercises

This series is the English edition of 【証明書入門】, originally written in Japanese.

コメント

Copied title and URL