On this page

    P

    tls.rootCertificates

    History
    Type:string[]

    An immutable array of strings representing the root certificates (in PEM format) from the bundled Mozilla CA store as supplied by the 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.

    To get the actual CA certificates used by the current Node.js instance, which may include certificates loaded from the system store (if --use-system-ca is used) or loaded from a file indicated by NODE_EXTRA_CA_CERTS, use tls.getCACertificates().