@@ -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
@@ -336,6 +354,24 @@ misformatted, but any errors are otherwise ignored.
336354Note that neither the well known nor extra certificates are used when the ` ca `
337355options property is explicitly specified for a TLS or HTTPS client or server.
338356
357+ ### ` SSL_CERT_DIR=dir `
358+
359+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's directory
360+ containing trusted certificates.
361+
362+ Note: Be aware that unless the child environment is explicitly set, this
363+ evironment variable will be inherited by any child processes, and if they use
364+ OpenSSL, it may cause them to trust the same CAs as node.
365+
366+ ### ` SSL_CERT_FILE=file `
367+
368+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's file
369+ containing trusted certificates.
370+
371+ Note: Be aware that unless the child environment is explicitly set, this
372+ evironment variable will be inherited by any child processes, and if they use
373+ OpenSSL, it may cause them to trust the same CAs as node.
374+
339375[ emit_warning ] : process.html#process_process_emitwarning_warning_name_ctor
340376[ Buffer ] : buffer.html#buffer_buffer
341377[ debugger ] : debugger.html
0 commit comments