Skip to content

Commit 267bbe3

Browse files
jasnelldanielleadams
authored andcommitted
doc: document that NODE_EXTRA_CA_CERTS is read only once
Fixes: #20432 PR-URL: #37562 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7042ec8 commit 267bbe3

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

doc/api/cli.md

+4
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,10 @@ options property is explicitly specified for a TLS or HTTPS client or server.
13121312
This environment variable is ignored when `node` runs as setuid root or
13131313
has Linux file capabilities set.
13141314

1315+
The `NODE_EXTRA_CA_CERTS` environment variable is only read when the Node.js
1316+
process is first launched. Changing the value at runtime using
1317+
`process.env.NODE_EXTRA_CA_CERTS` has no effect on the current process.
1318+
13151319
### `NODE_ICU_DATA=file`
13161320
<!-- YAML
13171321
added: v0.11.15

doc/node.1

+7
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,13 @@ but any errors are otherwise ignored.
576576
.Pp
577577
This environment variable is ignored when `node` runs as setuid root or
578578
has Linux file capabilities set.
579+
.Pp
580+
The
581+
.Ar NODE_EXTRA_CA_CERTS
582+
environment variable is only read when the Node.js process is first launched.
583+
Changing the value at runtime using
584+
.Ar process.env.NODE_EXTRA_CA_CERTS
585+
has no effect on the current process.
579586
.
580587
.It Ev NODE_ICU_DATA Ar file
581588
Data path for ICU (Intl object) data.

lib/internal/main/print_help.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const envVars = new SafeMap(ArrayPrototypeConcat([
3939
['NODE_DISABLE_COLORS', { helpText: 'set to 1 to disable colors in ' +
4040
'the REPL' }],
4141
['NODE_EXTRA_CA_CERTS', { helpText: 'path to additional CA certificates ' +
42-
'file' }],
42+
'file. Only read once during process startup.' }],
4343
['NODE_NO_WARNINGS', { helpText: 'set to 1 to silence process warnings' }],
4444
['NODE_PATH', { helpText: `'${require('path').delimiter}'-separated list ` +
4545
'of directories prefixed to the module search path' }],

0 commit comments

Comments
 (0)