Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用自定义的 OpenSSL、使用--with-openssl和--enable-openssl-bundling选项构建了 OpenJ9。我什至可以libcrypto.so在构建的二进制文件中看到,但我确信当我使用java.security.KeyPairGenerator. 如何“强制”JVM 对所有加密操作使用 OpenSSL?我试过-Djdk.nativeCrypto=true了,没有任何区别。
--with-openssl
--enable-openssl-bundling
libcrypto.so
java.security.KeyPairGenerator
-Djdk.nativeCrypto=true
OpenJ9 将 openssl 用于一些选择功能,例如 Digest、CBC、GCM、RSA 和 ChaCha20。它可能不用于密钥生成,因为这是执行频率较低的操作。
您可以尝试使用-Djdk.nativeCryptoTrace=true来验证是否正在使用本机加速。
-Djdk.nativeCryptoTrace=true