Skip to content

Create a PEM File for Nginx

Nginx usually needs a full-chain PEM file.

Method

Merge the domain certificate and CA bundle in this order:

bash
cat domain.crt ca-bundle.crt > domain.pem

Nginx Example

nginx
ssl_certificate /etc/ssl/example.com/domain.pem;
ssl_certificate_key /etc/ssl/example.com/domain.key;

Released under internal 12SSL documentation guidelines.