Certificate chain fixer — order and complete an SSL bundle

An online tool for ordering and completing an SSL certificate chain. Paste the certificates you were given in any order and it works out which is the server certificate, which are intermediates and which do not belong, verifies every signature in the chain, and hands back a correctly ordered file ready for nginx or Apache. If the intermediate is missing it can download it from the address named inside your certificate.

How to use it

1
Paste everything you were given

The certificate, the intermediate, the CA bundle, in any order. Several files can be dropped at once.

2
Read the diagnosis

The tool says what is wrong: wrong order, missing intermediate, an unrelated certificate mixed in, or a broken signature.

3
Fetch the intermediate if it is missing

One button, using the address written inside your own certificate.

4
Install the corrected file

Copy fullchain.pem to your server and point ssl_certificate at it. Configuration snippets are below the file.

Turn a pile of certificates into the file your server actually wants

Paste above, drop files anywhere on this box, or
Order does not matter, duplicates do not matter, and extra certificates that do not belong will be identified. .p7b and .p7c bundles are unpacked automatically.
Published Updated Author: