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