DBeaver连接SqlServer报“The server selected protocol version TLS10 is not accepted by client prefere”的错误
1、🎀问题描述
DBeaver在连接SqlServer时,出现如下图所示的错误:
The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]”。 ClientConnectionId:f196705b-2b92-4efa-85d3-3977c4d19dd9
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]
2、🎨解决办法
定位到Java的安装目录conf\security,用编辑器打开java.security文件,搜索关键字jdk.tls.disabledAlgorithms=SSLv3,如下图所示:
将其中的TLSv1, TLSv1.1配置删除掉即可,这2个配置是Java高版本中增加的,低版本不存在这2个配置,如下图所示:
然后重启DBeaver,重新连接SqlServer即可成功,如下图所示: