简体   繁体   English

"无法使用 Bouncy Castle Fips Provider 连接到 sqlserver,用于在 FIPS mod 中运行 JSSE"

[英]Can not connect to sqlserver with Bouncy Castle Fips Provider using to run the JSSE in FIPS mod

FIPS Mode doesn't allow TrustManager/KeyManager implementation from third-party sources, only SunJSSE KeyManager/TrustManager are supported which are instance of X509TrustManagerImpl/X509KeyManagerImpl . FIPS 模式不允许第三方来源的 TrustManager/KeyManager 实施,仅支持 SunJSSE KeyManager/TrustManager,它们是X509TrustManagerImpl/X509KeyManagerImpl的实例。

I overcame this in postgres jdbc where it allowed me to pass custom sslFactory so I passed org.postgresql.ssl.DefaultJavaSSLFactory which in turn will prevent postgres to send it's own KeyManager implementation and will delegate the process to Java to provide with right KeyManager instance.我在 postgres jdbc 中克服了这个问题,它允许我通过自定义 sslFactory 所以我通过了org.postgresql.ssl.DefaultJavaSSLFactory这反过来会阻止 postgres 发送它自己的 KeyManager 实现并将该过程委托给 Java 以提供正确的 KeyManager 实例。

In other jdbc drivers, you may need to find same configuration to overcome this.在其他 jdbc 驱动程序中,您可能需要找到相同的配置来克服这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 fips 的 Bouncy Castle 不适用于 Linux 虚拟机 - Bouncy Castle for fips is not working on linux virtual machine TLS1.2是否使用配置了SunPKCS11-NSS提供程序的JSSE在FIPS模式下与NSS一起使用 - Does TLS1.2 work with NSS in FIPS mode using JSSE configured with SunPKCS11-NSS provider 不能与Bouncy Castle fips jar一起使用PBEWithHmacSHA1AndDESede,可以与RSA cryptoJ一起正常工作 - Can't use PBEWithHmacSHA1AndDESede with Bouncy Castle fips jar, works fine with RSA cryptoJ Bouncy Castle FIPS 库中缺少 EC.generateKeyPair() - EC.generateKeyPair() missing in Bouncy Castle FIPS library PKCS#12 KeyStore 格式的 Bouncy Castle FIPS 模式 - Bouncy Castle FIPS mode for PKCS#12 KeyStore Format 如何通过 BouncyCastle JSSE 提供者 + FIPS 提供者选择性地使用仅批准模式? - How to selectively use approved-only mode with BouncyCastle JSSE provider + FIPS provider? 在FIPS-140模式下为公钥配置Bouncy Castle填充机制 - Configure Bouncy Castle padding mechanism for public key in FIPS-140 mode ActiveMQ 在 FIPS 模式下运行 - ActiveMQ run in FIPS mode 使用 Bouncy Castle 提供程序创建 SSLContext 实例 - create an SSLContext instance using a Bouncy Castle provider 充气城堡没有这样的提供者例外 - Bouncy castle no such provider exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM