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: https://github.com/nodejs/node/issues/32074
Refs: https://github.com/nodejs/node/issues/32229

PR-URL: https://github.com/nodejs/node/pull/33313
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Eric Bickle authored and Shelley Vohr committed 2020-06-30 09:33:42 -07:00
1 parent d5aa4131e2
commit 2643b09e89
1 file changed
+4 -2
+4 -2
View File
@@ -1789,8 +1789,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