说明:启动一些微服务后,一直在报下面这个错误;

com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS12]”。 ClientConnectionId:753383a4-ac2a-4a8c-9a14-bbf2695aab48

Caused by: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

解决:找到jdk下的jre\lib\security目录,打开java.security文件,搜索jdk.tls.disabledAlgorithms,去掉后面的TLSv1, TLSv1.1和3DES_EDE_CBC,注意逗号修改完不要缺失。

应该是jdk8独有的问题,高版本的jdk没有出现过;

精彩内容

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: