HTTP directives

ssl_certificate directive (HTTP)

HTTP SSL module; http or server context. No default certificate file. For a PEM file containing a chain, put the leaf first, followed by intermediates. Requires an appropriate TLS library and matching private key.

Formal Syntax & Structure

nginx syntaxnginx
ssl_certificate file;

Parameters & Attributes

NameTypeDescription
filepathPath to the approved PEM certificate chain.

Working Example

Example Snippetnginx
ssl_certificate certs/shop-chain.pem;
Nginx Reference