Security

What Is a Certificate Authority? How CAs and the Chain of Trust Work

A certificate authority (CA) is an organisation that checks who controls a domain and then digitally signs a certificate binding that domain to a public key. Your browser trusts a site's certificate because it can follow a chain of signatures from it up to a root CA certificate that is already built into your operating system or browser.

What a certificate authority actually does

When you connect to https://example.com, the server sends a certificate that says, in effect, "this public key belongs to example.com", signed by a CA. A CA's job has three parts:

  1. Validate that the requester controls the domain (and, for some certificate types, that the organisation exists).
  2. Sign the certificate with the CA's private key, so anyone can verify the signature with the CA's public key.
  3. Publish revocation information, so a certificate can be cancelled before it expires if its key is stolen.

The signature is what makes the certificate useful. Anyone can create a certificate that claims to be google.com, but only a trusted CA's signature makes browsers accept it. The underlying maths is the same public-key signing described in public-key cryptography explained.

Root CAs, intermediate CAs and the chain of trust

CAs come in two kinds. The CA/Browser Forum's Baseline Requirements define them:

  • Root CA: "The top level Certification Authority whose Root Certificate is distributed by Application Software Suppliers", meaning browser and OS vendors. Root certificates are self-signed and shipped in the trust store.
  • Subordinate (intermediate) CA: "A Certification Authority whose Certificate is signed by the Root CA, or another Subordinate CA."

Roots don't usually sign website certificates directly. Let's Encrypt, for example, states that its root key material is kept offline and that subscriber certificates are issued from intermediates. If an intermediate is compromised, it can be replaced without asking every browser to ship a new root.

You can see a real chain with openssl. This is the chain letsencrypt.org served in October 2026:

openssl s_client -connect letsencrypt.org:443 -servername letsencrypt.org </dev/null

Example output (trimmed):

Certificate chain
 0 s:CN=letsencrypt.org
   i:C=US, O=Let's Encrypt, CN=YE2
   v:NotBefore: Sep  4 14:34:32 2026 GMT; NotAfter: Dec  3 14:34:31 2026 GMT
 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
...
Verify return code: 0 (ok)

Read it from the top. s: is the subject (who the certificate is for) and i: is the issuer (who signed it). Each certificate's issuer is the next one's subject: the site's certificate (0) was signed by the intermediate YE2 (1), which was signed by Root YE (2). Certificates 2 and 3 are cross-signs: Root YE is new and, according to Let's Encrypt, not yet in major trust stores, so it is itself signed by the older ISRG Root X2, which is signed by ISRG Root X1. Older clients that only trust X1 can still build a path. RFC 5280 calls this matching of issuer to subject "name chaining".

Validation succeeds when the client reaches a root it already trusts, every signature checks out, every certificate is within its dates, and the leaf certificate's names match the hostname.

How a CA checks you own the domain

For an ordinary (domain-validated) certificate, the CA only checks control of the domain. Let's Encrypt describes the ACME process:

  1. Your ACME client (such as certbot) creates an account key pair.
  2. The CA issues a challenge: put a specific DNS record under the domain, or serve a specific file at a well-known URL on http://yourdomain/.
  3. The CA checks the challenge from multiple network locations.
  4. Your client sends a certificate signing request (CSR) containing your server's public key; the CA signs it and returns the certificate.
  5. The CA submits the certificate to public Certificate Transparency logs.

Your private key never leaves your server. The CA signs your public key, which is why losing the private key means getting a new certificate, not asking the CA for a copy.

The DNS challenge relies on DNS answering correctly for your domain; how DNS works covers that side.

DV, OV and EV certificates

TypeWhat the CA verifiesTypical use
Domain Validated (DV)Control of the domain onlyMost websites; what Let's Encrypt issues
Organization Validated (OV)Domain control plus the organisation's identityBusinesses that want their name in the certificate
Extended Validation (EV)Stricter organisation checksOrganisations that want the most thorough identity checks

All three produce the same encryption. The difference is only how much the CA checked about the owner, and therefore what the certificate's subject fields say.

Who decides which CAs are trusted?

Browser and operating system vendors run root programs and decide which roots go into their trust stores. Publicly trusted CAs must follow the CA/Browser Forum's Baseline Requirements, a shared rulebook for how they validate, issue and revoke certificates. A CA that breaks the rules can be removed from trust stores, and then the certificates it issues stop working in those browsers.

The rules include certificate lifetimes, which are getting shorter. Under the Baseline Requirements (version 2.3.1, October 2026), the maximum validity of a subscriber certificate is 200 days for certificates issued from 15 March 2026, falling to 100 days from 15 March 2027 and 47 days from 15 March 2029. Renewing by hand once a year stops working; automated renewal through ACME becomes the normal way to run HTTPS.

Certificate errors and what they mean

openssl reports why a chain fails. These are the codes from test sites at badssl.com:

Problemopenssl resultWhat it means
Expired certificateVerify return code: 10 (certificate has expired)The current date is past NotAfter. Renew it, or check the client's clock.
Self-signed certificateVerify return code: 18 (self-signed certificate)No CA signed it, so there is no chain to a trusted root.
Unknown rootVerify return code: 19 (self-signed certificate in certificate chain)The chain ends at a root this client doesn't trust, such as a private company CA.
Wrong hostnameVerify return code: 62 (hostname mismatch)The certificate is valid but issued for different names (run with -verify_hostname to check this).

Browsers show the same failures as a full-page warning before letting you continue.

Inspect any site's certificate yourself

To print just the subject, issuer and validity dates:

openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates

Example output for letsencrypt.org:

subject=CN=letsencrypt.org
issuer=C=US, O=Let's Encrypt, CN=YE2
notBefore=Sep  4 14:34:32 2026 GMT
notAfter=Dec  3 14:34:31 2026 GMT

-servername sends the hostname (SNI), which matters on servers that host many sites on one IP address; without it you may get a different site's certificate. In a browser, click the icon to the left of the address bar and open the certificate details to see the same chain.

If your own site shows a certificate error

A common server-side mistake is sending only the leaf certificate without the intermediate. Some clients can work around a missing intermediate and others can't, so the site may load in one browser and fail in a script. openssl against such a server (incomplete-chain.badssl.com) reports Verify return code: 21 (unable to verify the first certificate). Configure the server with the full chain: certbot's documentation says cert.pem holds the server certificate by itself, while fullchain.pem holds all certificates, and servers should generally use fullchain.pem with privkey.pem. If the chain is right and a single client still fails, that client's trust store is probably out of date and doesn't include the root your CA now uses.

Frequently asked questions

Is Let's Encrypt a certificate authority?
Yes. Let's Encrypt is a free, automated certificate authority run by the Internet Security Research Group (ISRG). Its roots, such as ISRG Root X1, are in the major browser and operating system trust stores, and it issues certificates through the ACME protocol after checking that you control the domain.
What happens if a certificate authority is compromised?
Browsers and operating systems can remove or distrust its root, after which every certificate chaining to it fails validation. Certificates can also be revoked individually. That's why root keys are kept offline and day-to-day issuance uses intermediates, which can be replaced without changing the root.
Can I be my own certificate authority?
Yes, for internal use. Tools such as openssl can create a private root and sign certificates with it, and any device where you install that root will trust them. Browsers on other people's devices won't, because your root isn't in their trust store. Public websites need a certificate from a publicly trusted CA.
Do paid certificates encrypt better than free ones?
No. The encryption strength comes from the key type and the TLS settings on your server, not from the price of the certificate. What a paid certificate can add is a higher validation level (organisation or extended validation), where the CA verifies the company behind the site, plus whatever support the vendor offers. The connection is no stronger.

Sources