Certificate chain builder

Put a server certificate and its intermediates in the right order, as the fullchain.pem nginx wants or the CA bundle Apache and IIS want. Each link is checked, and anything missing is named.

Try:

fullchain.pem: the server certificate, then its intermediates. For nginx and most other servers.

Built on this device, never uploaded

How to build a certificate chain

Short answer

Drop the server certificate and the CA bundle your certificate authority sent, in any order. They are put in order, server certificate first, each link’s signature is checked, and you download fullchain.pem or the CA bundle on its own.

  1. Add the certificates

    The .crt your CA issued and its intermediate or bundle files: PEM, DER, CRT, CER or P7B, several files or one PEM with them all. Pasted PEM text works too.

  2. Check the chain

    Each certificate is listed in order with its expiry. A missing intermediate is named, with the address where your CA publishes it when the certificate says so.

  3. Download

    fullchain.pem for nginx and most servers, or the CA bundle on its own for Apache’s SSLCertificateChainFile and IIS.

Which file for which server

ServerFile
nginxfullchain.pem as ssl_certificate
Apache 2.4.8 and laterfullchain.pem as SSLCertificateFile
Older ApacheThe certificate as SSLCertificateFile, the CA bundle as SSLCertificateChainFile
HAProxyfullchain.pem with the private key added at the end
IIS and WindowsA PFX: make one with the certificate, its key and this bundle

Specs

ReadsPEM, DER, CRT, CER and P7B; several files or one combined PEM
OrderServer certificate first, then each issuer; the root left out unless asked for
ChecksEach certificate is signed by the next; expiry of each; what is missing above the last
Savesfullchain.pem, ca-bundle.crt, or the chain copied as text
PriceFree, no account

Questions

What is fullchain.pem?

The server certificate followed by the intermediate certificates that link it to a root, in one file. Servers send it so browsers can check the certificate without fetching anything.

Why does the order matter?

Each certificate must be followed by the one that issued it. A chain in the wrong order or with an intermediate missing works in some browsers and fails in others, apps and older phones.

Should the root certificate be included?

No. Browsers and systems already have the roots they trust, so sending it only adds bytes. Switch on Include the root if a system asks for it.

An intermediate is missing. Where do I get it?

From your certificate authority: it is in the bundle they sent with the certificate, and most certificates name the address where it can be downloaded, which is shown here.

Are my files uploaded?

No. The certificates are read and put in order by your browser. Nothing is sent anywhere.