The function first reads every valid path in NODE_EXTRA_CA_CERTS and
SSL_CERT_FILE. It then reads the first common operating-system bundle that
exists. It joins all loaded PEM data in that order.
This is a PEM-file scan. It does not read the Windows certificate store,
the macOS Keychain, or Node.js built-in root certificates.
File errors do not stop SDK initialization. The function writes lookup
details to the supplied Logger and returns undefined when it cannot
read a non-empty bundle.
Loads system root certificates from common paths.
The function first reads every valid path in
NODE_EXTRA_CA_CERTSandSSL_CERT_FILE. It then reads the first common operating-system bundle that exists. It joins all loaded PEM data in that order.This is a PEM-file scan. It does not read the Windows certificate store, the macOS Keychain, or Node.js built-in root certificates.
File errors do not stop SDK initialization. The function writes lookup details to the supplied Logger and returns
undefinedwhen it cannot read a non-empty bundle.