From 12694002ffb70638cc3304a2b6385afb76756133 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 1 Mar 2021 14:00:18 -0800 Subject: [PATCH] doc: document that NODE_EXTRA_CA_CERTS is read only once Fixes: https://github.com/nodejs/node/issues/20432 --- doc/api/cli.md | 4 ++++ doc/node.1 | 7 +++++++ lib/internal/main/print_help.js | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index a8df8b410271a0..297058db2f7bbe 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1312,6 +1312,10 @@ options property is explicitly specified for a TLS or HTTPS client or server. This environment variable is ignored when `node` runs as setuid root or has Linux file capabilities set. +The `NODE_EXTRA_CA_CERTS` environment variable is only read when the Node.js +process is first launched. Changing the value at runtime using +`process.env.NODE_EXTRA_CA_CERTS` has no effect on the current process. + ### `NODE_ICU_DATA=file`