首页 / 问答 / Rider连接远程MS SQL Server 2019数据库出现JDBC的[08S01]错误如何解决呢?

Rider连接远程MS SQL Server 2019数据库出现JDBC的[08S01]错误如何解决呢?

SQL Server Rider 1.73K 次浏览
0

今天在使用Rider连接远程MS SQL Server 2019数据库时,出现JDBC的[08S01]错误,错误信息如下:

[08S01] The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:f98c77bb-9f37-4137-971e-481037e748ee
unable to find valid certification path to requested target.

应该如何解决呢?

回复 [×]
提交评论
请输入评论内容

1 个回答

  • 0

    jdbc的连接字符串中添加配置trustServerCertificate=true,示例如下:

    Rector的个人主页

    Rector

    2022-04-15 回答

    我来回答