数据库

异常记录

java8客户端连接报TLS1.1错误

问题描述

java8客户端(DBeaver)连接 Win7 服务端报错:

The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]

The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]". ClientConnectionId:4d7779ea-a4bc-44dd-a0b6-5782e17ccef2
  The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
  The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]

解决方法

把 DBeaver 安装目录下jreconfsecurity 这个文件夹拷贝覆盖 自定义jdk路径confsecurity。

若不行,则尝试以下操作:
按 OS 版本显示的安全协议支持

打补丁,修改注册表:

修补程序安装程序不会添加 DefaultSecureProtocols 值。 管理员必须在确定替代协议后手动添加条目。 或者,可以安装"简易修复"以自动添加条目。

简易修复

若要自动添加 DefaultSecureProtocols 注册表子项,请单击此处。 在“文件下载”对话框中,单击“运行”或“打开”,然后按照 Easy Fix 向导中的步骤操作。

待续...

原文地址:https://www.cnblogs.com/zxaben/p/14864232.html