HTTP directives

ssl_certificate_key directive (HTTP)

HTTP SSL module; http or server context. No default key file. For a conventional PEM file, keep its permissions restricted and ensure the Nginx master can read it. The key must match the configured certificate.

Formal Syntax & Structure

nginx syntaxnginx
ssl_certificate_key file;

Parameters & Attributes

NameTypeDescription
filepathPath to the protected PEM private key.

Working Example

Example Snippetnginx
ssl_certificate_key certs/shop-key.pem;
Nginx Reference