@@ -243,6 +243,24 @@ Load an OpenSSL configuration file on startup. Among other uses, this can be
243243used to enable FIPS-compliant crypto if Node.js is built with
244244` ./configure --openssl-fips ` .
245245
246+ ### ` --use-openssl-ca ` , ` --use-bundled-ca `
247+ <!-- YAML
248+ added: REPLACEME
249+ -->
250+
251+ Use OpenSSL's default CA store or use bundled Mozilla CA store as supplied by
252+ current NodeJS version. The default store is selectable at build-time.
253+
254+ Using OpenSSL store allows for external modifications of the store. For most
255+ Linux and BSD distributions, this store is maintained by the distribution
256+ maintainers and system administrators. OpenSSL CA store location is dependent on
257+ configuration of the OpenSSL library but this can be altered at runtime using
258+ environmental variables.
259+
260+ The bundled CA store, as supplied by NodeJS, is a snapshot of Mozilla CA store
261+ that is fixed at release time. It is identical on all supported platforms.
262+
263+ See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
246264
247265### ` --icu-data-dir=file `
248266<!-- YAML
@@ -340,6 +358,24 @@ used to enable FIPS-compliant crypto if Node.js is built with `./configure
340358If the [ ` --openssl-config ` ] [ ] command line option is used, the environment
341359variable is ignored.
342360
361+ ### ` SSL_CERT_DIR=dir `
362+
363+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's directory
364+ containing trusted certificates.
365+
366+ Note: Be aware that unless the child environment is explicitly set, this
367+ evironment variable will be inherited by any child processes, and if they use
368+ OpenSSL, it may cause them to trust the same CAs as node.
369+
370+ ### ` SSL_CERT_FILE=file `
371+
372+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's file
373+ containing trusted certificates.
374+
375+ Note: Be aware that unless the child environment is explicitly set, this
376+ evironment variable will be inherited by any child processes, and if they use
377+ OpenSSL, it may cause them to trust the same CAs as node.
378+
343379[ emit_warning ] : process.html#process_process_emitwarning_warning_name_ctor
344380[ Buffer ] : buffer.html#buffer_buffer
345381[ debugger ] : debugger.html
0 commit comments