sqlserver2014连接JAVA: The server selected protocol version TLS10 is not accepted by client preference

Posted 白云可以飞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sqlserver2014连接JAVA: The server selected protocol version TLS10 is not accepted by client preference相关的知识,希望对你有一定的参考价值。


数据库连接问题:The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

jdk-8u291禁用TLS 1.0和1.1  我用的数据库:SqlServer2014 

进入JDK找到\\jre1.8.0_291\\lib\\security下的java.security,打开删掉

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

便可解决问题。

链接:https://blog.csdn.net/weixin_47180824/article/details/116236919

以上是关于sqlserver2014连接JAVA: The server selected protocol version TLS10 is not accepted by client preference的主要内容,如果未能解决你的问题,请参考以下文章

java:驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接:“The server selected protocol version TLS10 is not a

Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference

Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference

Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference

Logstash连接sqlserver: The server selected protocol version TLS10 is not accepted by client preference

vs2014与sqlserver数据库连接出现错误,求大神解决,最好附有步骤截图