Skip to content

Commit 281d7f7

Browse files
ebicklecodebytere
authored andcommitted
doc: correct tls.rootCertificates to match implementation
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: #32074 Refs: #32229 PR-URL: #33313 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e105034 commit 281d7f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/api/tls.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1776,8 +1776,10 @@ added: v12.3.0
17761776
* {string[]}
17771777

17781778
An immutable array of strings representing the root certificates (in PEM format)
1779-
used for verifying peer certificates. This is the default value of the `ca`
1780-
option to [`tls.createSecureContext()`][].
1779+
from the bundled Mozilla CA store as supplied by current Node.js version.
1780+
1781+
The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store
1782+
that is fixed at release time. It is identical on all supported platforms.
17811783

17821784
## `tls.DEFAULT_ECDH_CURVE`
17831785
<!-- YAML

0 commit comments

Comments
 (0)