ngx_keylog Module to log SSL Keys in the NSS Key Log Format Usage server { keylog on; keylog_file /tmp/keylog-http.txt; } stream { keylog on; keylog_file /tmp/keylog-stream.txt; }