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
The certificate, the intermediate, the CA bundle, in any order. Several files can be dropped at once.
The tool says what is wrong: wrong order, missing intermediate, an unrelated certificate mixed in, or a broken signature.
One button, using the address written inside your own certificate.
Copy fullchain.pem to your server and point ssl_certificate at it. Configuration snippets are below the file.