he server selected protocol version TLS10 is not accepted问题

Caused by: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]
com.microsoft.sqlserver.jdbc.SQLServerException: 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 [TLS12]". ClientConnectionId:7bb78844-cfcd-45df-91ea-74d8a4bd32e9
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:3680)

以上错误是不是困扰你很久了,两天了没查到原因。

我是CentOs8   openjdk1.8

网上答案多为修改:。。\jre\lib\security路径下的java.secuity文件

修改方法如下:

#jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
#    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, an

相关推荐

  1. iOS 10权限问题

    2023-12-16 08:20:01       78 阅读
  2. 问题整理【2024-04-10

    2023-12-16 08:20:01       33 阅读
  3. 问题 B: 实验11_10_链表排序

    2023-12-16 08:20:01       153 阅读
  4. 10个最难的 Python 问题

    2023-12-16 08:20:01       39 阅读
  5. day17-分配问题

    2023-12-16 08:20:01       40 阅读
  6. Html_Css问答集(10)

    2023-12-16 08:20:01       21 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-16 08:20:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-16 08:20:01       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-16 08:20:01       82 阅读
  4. Python语言-面向对象

    2023-12-16 08:20:01       91 阅读

热门阅读

  1. Windows 10/11 免费安装HEVC/H.265视频扩展

    2023-12-16 08:20:01       221 阅读
  2. 大语言模型--数据

    2023-12-16 08:20:01       61 阅读
  3. MySQL 是什么?

    2023-12-16 08:20:01       56 阅读
  4. 融云即时通讯的产品优势

    2023-12-16 08:20:01       59 阅读
  5. 谣言检测常用数据集汇总

    2023-12-16 08:20:01       59 阅读
  6. Node Cli 之 workspaces 和 lerna 入门

    2023-12-16 08:20:01       61 阅读
  7. 二分查找25(Leetcode1498满足条件的子序列数目)

    2023-12-16 08:20:01       57 阅读
  8. HTTP超文本传输协议

    2023-12-16 08:20:01       60 阅读
  9. python——数据类型

    2023-12-16 08:20:01       64 阅读