From c21731b39f17073574bccbb9729c89610e1b7b14 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 PR-URL: https://github.com/nodejs/node/pull/37562 Reviewed-By: Michael Dawson Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- 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 886d17c6d5e185..ee659f49df69a4 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1175,6 +1175,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`