--force-fips[=mode]
在启动时启用 FIPS 模式,并防止其被脚本代码禁用。与 --enable-fips 相同的 OpenSSL 要求也适用。
🌐 Enable FIPS mode at startup and prevent it from being disabled from script
code. The same OpenSSL requirements as --enable-fips apply.
可以使用 --force-fips=mode 指定一个可选模式:
🌐 An optional mode can be specified using --force-fips=mode:
provider:保留 OpenSSL FIPS 提供程序对非批准操作的已配置处理方式。当省略模式时,这是当前默认设置。strict:拒绝通过 OpenSSL FIPS 指示回调报告的未批准操作。此模式需要 OpenSSL 3.4 或更高版本。
strict 模式只涵盖通过回调报告的 OpenSSL 默认库上下文中的操作。它不涵盖使用其他 OSSL_LIB_CTX 或其他 libcrypto 副本的本地插件,也不涵盖不调用回调的特定操作指示器。
🌐 The strict mode only covers operations reported through the callback for
OpenSSL's default library context. It does not cover native addons that use
another OSSL_LIB_CTX or another copy of libcrypto, nor operation-specific
indicators that do not invoke the callback.