Skip to content

Commit 1ca3c9d

Browse files
cjihrigcodebytere
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 68aecff commit 1ca3c9d

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
@@ -673,6 +673,12 @@ Path to the file used to store the persistent REPL history. The default path is
673673
`~/.node_repl_history`, which is overridden by this variable. Setting the value
674674
to an empty string (`''` or `' '`) disables persistent REPL history.
675675

676+
### `NODE_TLS_REJECT_UNAUTHORIZED=value`
677+
678+
If `value` equals `'0'`, certificate validation is disabled for TLS connections.
679+
This makes TLS, and HTTPS by extension, insecure. The use of this environment
680+
variable is strongly discouraged.
681+
676682
### `NODE_V8_COVERAGE=dir`
677683

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

0 commit comments

Comments
 (0)