Skip to content

Commit

Permalink
doc: correct tls.rootCertificates to match implementation
Browse files Browse the repository at this point in the history
Update tls.rootCertificates documentation to clarify that it returns
the bundled Node.js root certificates rather than the root certificates used by tls.createSecureContext.

Fixes: nodejs#32074
Refs: nodejs#32229
  • Loading branch information
ebickle committed May 8, 2020
1 parent 56a430a commit 3a65605
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -1791,8 +1791,10 @@ added: v12.3.0
* {string[]}

An immutable array of strings representing the root certificates (in PEM format)
used for verifying peer certificates. This is the default value of the `ca`
option to [`tls.createSecureContext()`][].
from the bundled Mozilla CA store as supplied by current Node.js version.

The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store
that is fixed at release time. It is identical on all supported platforms.

## `tls.DEFAULT_ECDH_CURVE`
<!-- YAML
Expand Down

0 comments on commit 3a65605

Please sign in to comment.