-
SQL Server在建立安全连接时遇到错误:“java.lang.RuntimeException:未能生成DH密钥对”
资源介绍
1、修改jdk/jre/lib/security/java.security,加粗部分放到最前面,其它依次修改编号放到后面
security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider
security.provider.2=sun.security.provider.Sun
security.provider.3=sun.security.rsa.SunRsaSign
security.provider.4=com.sun.net.ssl.internal.ssl.Provider
security.provider.5=com.sun.crypto.provider.SunJCE
security.provider.6=sun.security.jgss.SunProvider
security.provider.7=com.sun.security.sasl.Provider
security.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.9=sun.security.smartcardio.SunPCSC
security.provider.10=sun.security.mscapi.SunMSCAPI
2、bcprov-jdk16-1.46.jar放到jdk\jre\lib\ext下
- 上一篇: sunjce_provider.rar
- 下一篇: sunjce_provider.jar