OPENSSL_CONF=file
在启动时加载 OpenSSL 配置文件。该文件可以用作 FIPS 模式 配置的一部分。
🌐 Load an OpenSSL configuration file on startup. The file can be used as part of a FIPS mode configuration.
如果这个变量被设置为空值,Node.js 就会在不加载任何 OpenSSL 配置文件的情况下启动。这是一种绕过默认配置文件的方法,比如当 /etc/ssl 对 Node.js 运行的用户不可访问时,否则启动时会直接报错。在这种情况下,不会应用任何配置,包括文件本来可能执行的任何 FIPS 模式 设置。
🌐 If the variable is set to an empty value, Node.js starts without loading any
OpenSSL configuration file. This is a way past a default configuration file
that exists but cannot be read, for example when /etc/ssl is not accessible
to the user Node.js runs as, which is otherwise fatal at startup. No
configuration is applied in that case, including any FIPS mode setup the
file would have performed.
如果使用 --openssl-config 命令行选项,环境变量将被忽略,空值不会有任何效果。
🌐 If the --openssl-config command-line option is used, the environment
variable is ignored, and an empty value has no effect.