connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.Runt

Posted python

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.Runt相关的知识,希望对你有一定的参考价值。

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_XXjrelibext
 
 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_XXjrelibsecurityjava.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_XXjrelibext
 
重启OK
 
 
 

以上是关于connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.Runt的主要内容,如果未能解决你的问题,请参考以下文章

Datagrip连接SQLServer Connecting DataGrip to MS SQL Server

SQL Server connect to MySQL SQL Server通过LinkServer访问MySQL数据库

java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempt

Mysql导入Sql文件时报Error Code: 2013 - Lost connection to MySQL server during query

Unable to connect to localDB in VS2012 – “建立与 SQL Server 的连接时发生网络相关或特定于实例的错误...”

java.sql.SQLException: null, message from server: “Host ‘xxx’ is not allowed to connect