JDK版本之TLS协议问题


项目启动报如下错误:

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

The driver could not establish a secune connection to SQL Server by using Secune Sockets Layer (SSL) encryption.Error:The server selected protocol version TLS10 is not accepted by client preferences [TLS12]。

解决办法如下(亲测有效):

Java 8 是编辑 jre/lib/security/java.security 文件,找到 jdk.tls.disabledAlgorithms 配置项,将 TLSv1, TLSv1.1 删除即可。Java 11 是编辑 conf/security/java.security

作者的JDK版本是JDK1.8.0_301

感谢JasonLiao909在某博的评论提到的解决办法! 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM