liveBook · Manning

Certificate chain

As explained in Software Security for Developers

A certificate chain is an ordered sequence of an end-entity certificate and the certificates of the intermediate and root authorities that establish its trust.

A certificate chain is an ordered path from an end-entity certificate, such as github.com, through intermediate certificates to a trusted root certificate. This path lets a verifier confirm the server’s identity and the authenticity of its public key. section 8.2.1 section 8.4

The chain commonly contains three certificate roles:

  • End-entity certificate: identifies the server or other subject, such as github.com. section 8.3
  • Intermediate certificate: is issued by a root or higher-level intermediate CA and signs end-entity certificates. section 8.2.1 section 8.3
  • Root certificate: is self-signed and already trusted through an operating-system, browser, or runtime trust store. section 8.2.1 section 8.4

Diagnosing a missing issuer

Running `openssl verify github-cert.pem` can fail with `unable to get local issuer certificate`. Supplying the intermediate certificate allows OpenSSL to build the path: github.com at depth 0, DigiCert TLS Hybrid ECC SHA384 2020 CA1 at depth 1, and DigiCert Global Root CA at depth 2. Verification succeeds when that root is trusted.

How Software Security for Developers covers it

How deep it goes
Traces signatures and trust from end entity through intermediate to root, while deferring deeper cryptographic and revocation mechanics.
Examples
Uses github.com, DigiCert certificates, Ubuntu’s CA bundle, and OpenSSL verification output to demonstrate a complete chain.
What it assumes
Builds from zero around root CAs, intermediate CAs, end-entity certificates, signatures, and trust stores.
What you can do after
Diagnose trust failures with OpenSSL and identify missing issuers, intermediate certificates, or trusted roots.
How it connects
Connects root certificates, intermediate certificates, certificate authorities, trust stores, digital signatures, and certificate revocation.

Also explained in

Compare how 3 books explain certificate chain →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Software Security for Developers. The section links point to the parts of the book it draws on.