--use-bundled-ca,--use-openssl-ca


--use-bundled-ca, --use-openssl-ca

使用当前 Node.js 版本提供的打包 Mozilla CA 存储,或使用 OpenSSL 的默认 CA 存储。默认存储可在构建时选择。

【Use bundled Mozilla CA store as supplied by current Node.js version or use OpenSSL's default CA store. The default store is selectable at build-time.】

由 Node.js 提供的打包 CA 证书库是 Mozilla CA 证书库在发布时的快照。在所有支持的平台上都是相同的。

【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.】

使用 OpenSSL 存储允许对存储进行外部修改。对于大多数 Linux 和 BSD 发行版,该存储由发行版维护者和系统管理员维护。OpenSSL CA 存储的位置取决于 OpenSSL 库的配置,但可以在运行时使用环境变量进行更改。

【Using OpenSSL store allows for external modifications of the store. For most Linux and BSD distributions, this store is maintained by the distribution maintainers and system administrators. OpenSSL CA store location is dependent on configuration of the OpenSSL library but this can be altered at runtime using environment variables.】

请参见 SSL_CERT_DIRSSL_CERT_FILE

【See SSL_CERT_DIR and SSL_CERT_FILE.】