当前位置:   article > 正文

The server selected protocol version TLS10 is not accepted by client preferences

the server selected protocol version tls10 is not accepted by client prefere

jdk8升级到jdk11后,连接SqlServer出现驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12, TLS11]”。 ClientConnectionId:c8558f1d-a942-47fd-9598-79c745f21a50
在这里插入图片描述
解决办法修改 D:\jdk-11\conf\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
  • 1
  • 2
  • 3
# modify by wangxiaomin
jdk.tls.disabledAlgorithms=SSLv3, TLSv1.1, RC4, DES, MD5withRSA, \
    DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
    include jdk.disabled.namedCurves
  • 1
  • 2
  • 3
  • 4

主要是去掉了 TLSv1

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号