首页 > 数据库> > sqlserver2014连接JAVA: The server selected protocol version TLS10 is not accepted by client preference
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
标签:protocol,preferences,jdk,selected,client,TLS10,TLS12 来源: https://www.cnblogs.com/baiyunkeyifei/p/14787498.html