diff --git a/doc/api/tls.md b/doc/api/tls.md index 6a834c65ff3012..228de3979474e3 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -725,6 +725,19 @@ added: v8.4.0 Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts to renegotiate will trigger an `'error'` event on the `TLSSocket`. +### tlsSocket.enableTrace() + + +When enabled, TLS packet trace information is written to `stderr`. This can be +used to debug TLS connection problems. + +Note: The format of the output is identical to the output of `openssl s_client +-trace` or `openssl s_server -trace`. While it is produced by OpenSSL's +`SSL_trace()` function, the format is undocumented, can change without notice, +and should not be relied on. + ### tlsSocket.encrypted