he server selected protocol version TLS10 is not accepted问题

2023-12-16 06:11:04
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

文章来源:https://blog.csdn.net/happyxjbf/article/details/135027756
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。