1 下载 bcprov-ext-jdk15on-1.54.jar bcprov-jdk15on-1.54.jar ssl-provider-jvm16 mchange-commons-java.0.2.3.4 .jar 拷贝到 to jdk1.6.0_XX\jre\lib\ext
ssl-provider-jvm16 下载地址 https://github.com/tobszarny/ssl-provider-jvm16/releases
2 修改如下配置文件内容
Bouncy Castle based SSL provider for JVM 1.6. Mainly to fill the gaps for SSL connectivity with SQLServer over JDBC.
ABSOLETE IF YOU CAN UPGRADE BOUNCY CASTLE TO VERSION 1.58+
Solves problems with encoding strength, which is below SQLServer required on JVM 1.6. Solves problem with message error "Unsupported curveId: XX"
Edit jdk1.6.0_XX\jre\lib\security\java.security
security.provider.1=sun.security.provider.Sun
security.provider.2=net.tobszarny.ssl.java6.provider.BouncyCastleSSLProvider security.provider.3=org.bouncycastle.jce.provider.BouncyCastleProvider
security.provider.4=sun.security.rsa.SunRsaSign
security.provider.5=com.sun.net.ssl.internal.ssl.Provider
security.provider.6=com.sun.crypto.provider.SunJCE
security.provider.7=sun.security.jgss.SunProvider
security.provider.8=com.sun.security.sasl.Provider
security.provider.9=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.10=sun.security.smartcardio.SunPCSC
security.provider.11=sun.security.mscapi.SunMSCAPI
Add bcprov-jdk15on-1.52.jar ssl-provider-jvm16-0.2.jar
to jdk1.6.0_XX\jre\lib\ext
重启OK
原文地址:https://www.cnblogs.com/ajaxa/p/12205098.html
时间: 2024-10-10 05:11:06