驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接,错误:“The server selected protocol version TLS10 is not accepted by client
作者:VipSoft 时间:2024-01-14 21:42:28
驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client
[2022-09-07 11:45:35.517] [Druid-ConnectionPool-Create-5339735] [ERROR] com.alibaba.druid.pool.DruidDataSource - create connection SQLException, url: jdbc:sqlserver://172.16.6.88:1433;DatabaseName=testServer, errorCode 0, state 08S01
com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS12]”。 ClientConnectionId:f227ddec-3901-482c-bd54-6752243f1724
at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:2998)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1884)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:2558)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:2216)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2067)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1204)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:825)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1558)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1623)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2468)
Caused by: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
at sun.security.ssl.Alert.createSSLException(Alert.java:131)
at sun.security.ssl.Alert.createSSLException(Alert.java:117)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:357)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:313)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:304)
at sun.security.ssl.ServerHello$ServerHelloConsumer.onServerHello(ServerHello.java:946)
at sun.security.ssl.ServerHello$ServerHelloConsumer.consume(ServerHello.java:873)
at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:479)
at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:457)
at sun.security.ssl.TransportContext.dispatch(TransportContext.java:200)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1290)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1199)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:401)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:373)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1802)
... 8 common frames omitted
2. 找到 jdk.tls.disabledAlgorithms 如果有TLSv1、TLSv1.1、3DES_EDE_CBC 删除即可【使用管理员模式编辑】
C:\Program Files (x86)\Java\jdk1.8.0_291\jre\lib\security
也有说 jdk、jre都要改的,如果jdk里面改了没用,把 jre目录下也改了试试
来源:https://www.cnblogs.com/vipsoft/p/16664942.html
标签:驱动程序,安全套接字层,加密,SQL,Server
0
投稿
猜你喜欢
Python之tkinter进度条Progressbar用法解读
2023-07-15 17:14:57
Django 拆分model和view的实现方法
2022-03-28 02:35:34
python实现地牢迷宫生成的完整步骤
2021-07-26 19:27:56
JS中的public和private对象,即static修饰符
2023-08-29 21:53:13
python基础教程之基本数据类型和变量声明介绍
2023-08-28 22:45:55
Python检测一个对象是否为字符串类的方法
2022-11-02 15:25:24
Python开发实例分享bt种子爬虫程序和种子解析
2021-04-03 17:55:29
Python实现读写INI配置文件的方法示例
2021-03-16 08:10:08
NumPy 基本切片和索引的具体使用方法
2023-02-11 20:47:50
python实现删除列表中某个元素的3种方法
2023-02-08 16:01:59
matplotlib subplot绘制多个子图的方法示例
2021-12-18 14:49:50
Python Web框架之Django框架Form组件用法详解
2021-10-21 11:12:39
CentOS 6.4下编译安装MySQL5.6.14教程
2024-01-20 01:06:43
asp如何实现歌曲在线点播?
2010-05-19 21:32:00
如何提升JavaScript的运行速度(DOM篇)[译]
2009-02-25 12:24:00
python,pycharm的环境变量设置方式
2023-08-04 10:44:41
详解Python 定时框架 Apscheduler原理及安装过程
2021-06-16 15:15:09
Javascript实现信息滚动效果
2023-07-02 05:15:55
layui实现下拉复选功能的例子(包括数据的回显与上传)
2024-02-24 17:37:10
mysql 5.7.16 winx64安装配置方法图文教程
2024-01-26 22:30:25