liveBook · Manning

Certificate chain

As explained in Real-World Cryptography

An ordered set of certificates linking a subject certificate through intermediate certificate authorities to a trusted root.

A certificate chain lets a browser connect a website’s identity to a root certificate it already trusts. It is sent by the server during the TLS handshake. section 9.2.1

Read the chain from the website outward:

  • Leaf certificate: identifies the domain, such as google.com, and contains the website’s long-term public key. section 9.2.1
  • Intermediate CA certificates: connect the leaf certificate to a root CA through signatures. section 9.2.1
  • Root certificate: ends the chain and is trusted because it is stored in the browser’s trust store. section 9.2.1

Following Google’s chain

A browser can validate a Google certificate for *.google.com through the intermediate GTS CA 101, whose certificate is signed by the trusted GlobalSign root CA. section 9.2.1

Figure 9.6 The authentication part of a handshake starts with the server sending a certificate chain to the client. The certificate chain starts with the leaf certificate (the certificate containing the website’s public key and additional metadata like the domain name) and ends with a root certificate that is trusted by the browser. Each certificate contains a signature from the certificate above it in the chain.

Trace the leaf-to-root order and see how each certificate is signed by the certificate above it. section 9.2.1

How Real-World Cryptography covers it

How deep it goes
Explains leaf, intermediate, and root certificates, but stops short of detailed certificate-validation algorithms.
Examples
Uses Google’s certificate chain, browser trust stores, and the leaf-to-root signature sequence.
What it assumes
Assumes basic familiarity with TLS, public keys, digital signatures, browsers, and certificate authorities.
What you can do after
Evaluate how a browser connects a website certificate to a trusted root during TLS authentication.
How it connects
Connects TLS handshakes, certificate authorities, public-key cryptography, trust stores, and man-in-the-middle attacks.

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 Real-World Cryptography. The section links point to the parts of the book it draws on.