HTTP directives
ssl_key_log directive (HTTP)
Commercial diagnostic feature for exporting TLS connection secrets. Such files defeat traffic confidentiality if disclosed. Use only in an explicitly authorized isolated synthetic lab and delete after analysis; do not enable in production. Context: http, server. Documented default: none. Version: 1.27.2. Commercial subscription only. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
ssl_key_log path;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| path | restricted synthetic diagnostic file | Do not retain, publish or transfer actual TLS session secrets. |
Working Example
Example Snippetnginx
ssl_key_log logs/lab-only.keys;