The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL)

jdk:1.8

sql Driver:6.4.0

解决方法:

JDK目录下的jre\lib\security,打开java.security

找到jdk.tls.disabledAlgorithms,如下图

image

把3DES_EDE_CBC注释掉。保存,测试成功!

补充说明:开发环境改的是上面路径,实际生产环境修改的是JRE下的java.security

加密算法开启禁用:https://www.java.com/en/configure_crypto.html

你可能感兴趣的:(The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL))