0


驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接

启动服务失败,报错信息:com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”。 ClientConnectionId:62655bde-e544-471f-b0cb-e0ed9c4023ac

实测成功解决方案:在服务的yml配置文件数据库连接url末尾加上encrypt=false;

解释(个人理解):把连接设为不加密;规避报错提示的加密连接出错。

另一种不一样的报错信息:

驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS12]”

解决方案:考虑到换了jdk版本jdk1.8.0_333才遇到的这个问题,重新换回了原版本jdk1.8.0_112解决问题。


本文转载自: https://blog.csdn.net/hh_1008/article/details/127899058
版权归原作者 起飞起飞 所有, 如有侵权,请联系我们删除。

“驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接”的评论:

还没有评论