@@ -257,6 +257,24 @@ Load an OpenSSL configuration file on startup. Among other uses, this can be
257257used to enable FIPS-compliant crypto if Node.js is built with
258258` ./configure --openssl-fips ` .
259259
260+ ### ` --use-openssl-ca ` , ` --use-bundled-ca `
261+ <!-- YAML
262+ added: REPLACEME
263+ -->
264+
265+ Use OpenSSL's default CA store or use bundled Mozilla CA store as supplied by
266+ current NodeJS version. The default store is selectable at build-time.
267+
268+ Using OpenSSL store allows for external modifications of the store. For most
269+ Linux and BSD distributions, this store is maintained by the distribution
270+ maintainers and system administrators. OpenSSL CA store location is dependent on
271+ configuration of the OpenSSL library but this can be altered at runtime using
272+ environmental variables.
273+
274+ The bundled CA store, as supplied by NodeJS, is a snapshot of Mozilla CA store
275+ that is fixed at release time. It is identical on all supported platforms.
276+
277+ See ` SSL_CERT_DIR ` and ` SSL_CERT_FILE ` .
260278
261279### ` --icu-data-dir=file `
262280<!-- YAML
@@ -350,6 +368,24 @@ misformatted, but any errors are otherwise ignored.
350368Note that neither the well known nor extra certificates are used when the ` ca `
351369options property is explicitly specified for a TLS or HTTPS client or server.
352370
371+ ### ` SSL_CERT_DIR=dir `
372+
373+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's directory
374+ containing trusted certificates.
375+
376+ Note: Be aware that unless the child environment is explicitly set, this
377+ evironment variable will be inherited by any child processes, and if they use
378+ OpenSSL, it may cause them to trust the same CAs as node.
379+
380+ ### ` SSL_CERT_FILE=file `
381+
382+ If ` --use-openssl-ca ` is enabled, this overrides and sets OpenSSL's file
383+ containing trusted certificates.
384+
385+ Note: Be aware that unless the child environment is explicitly set, this
386+ evironment variable will be inherited by any child processes, and if they use
387+ OpenSSL, it may cause them to trust the same CAs as node.
388+
353389[ emit_warning ] : process.html#process_process_emitwarning_warning_name_ctor
354390[ Buffer ] : buffer.html#buffer_buffer
355391[ debugger ] : debugger.html
0 commit comments