Skip to content

Commit 36e4d0c

Browse files
cjihrigBridgeAR
authored andcommitted
doc: document NODE_TLS_REJECT_UNAUTHORIZED
This commit documents the NODE_TLS_REJECT_UNAUTHORIZED environment variable so that the world can know how potentially dangerous it is. PR-URL: #24289 Fixes: #24284 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 92a8cbe commit 36e4d0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/cli.md

+6
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ Path to the file used to store the persistent REPL history. The default path is
665665
`~/.node_repl_history`, which is overridden by this variable. Setting the value
666666
to an empty string (`''` or `' '`) disables persistent REPL history.
667667

668+
### `NODE_TLS_REJECT_UNAUTHORIZED=value`
669+
670+
If `value` equals `'0'`, certificate validation is disabled for TLS connections.
671+
This makes TLS, and HTTPS by extension, insecure. The use of this environment
672+
variable is strongly discouraged.
673+
668674
### `NODE_V8_COVERAGE=dir`
669675

670676
When set, Node.js will begin outputting [V8 JavaScript code coverage][] to the

0 commit comments

Comments
 (0)