DBeaver MSSQL 支持TLS设置
阅读原文时间:2021年10月02日阅读:1

DBeaver是一个基于 Java 开发,免费开源的通用数据库管理和开发工具,使用非常友好的 ASL 协议。可以通过官方网站或者 Github 进行下载。

由于 DBeaver 基于 Java 开发,可以运行在各种操作系统上,包括:Windows、Linux、macOS 等。DBeaver 采用 Eclipse 框架开发,支持插件扩展,并且提供了许多数据库管理工具:ER 图、数据导入/导出、数据库比较、模拟数据生成等。

DBeaver 通过 JDBC 连接到数据库,可以支持几乎所有的数据库产品,包括:MySQL、PostgreSQL、MariaDB、SQLite、Oracle、Db2、SQL Server、Sybase、MS Access、Teradata、Firebird、Derby 等等。商业版本更是可以支持各种 NoSQL 和大数据平台:MongoDB、InfluxDB、Apache Cassandra、Redis、Apache Hive 等。

DBeaver连接MSSQL的时候报了以下异常

1 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:310f95b2-90b4-4de6-97a3-4855003b1008
2 The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
3 The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]

这里JDK用的是 openJDK 11.0.12,所以通过配置路径 找到配置文件:jre/conf/security/java.security进行修改

如果装的版本是DBeaverEE 的话,那么直接将安装路径下的 jre/conf/security/java.security 覆盖到OpenJDK的相对路径下即可

如果不是则找到java.security下的 jdk.tls.disabledAlgorithms 修改如下

jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
include jdk.disabled.namedCurves

保存后,重启软件,或者重启电脑即可

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章