报的错误信息如下:
[08S01] 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”。 ClientConnectionId:721941c7-3e08-4e80-bc56-418e1c051624 sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
原来只需要一个设置就行了,如下图,只需要设置 trustServerCertificate 即可解决问题。

本文解决了SQL Server中出现的一个常见SSL连接问题。错误信息显示为无法通过SSL加密建立安全连接,并提示证书路径构建失败。文章指出只需设置一个参数trustServerCertificate即可轻松解决此问题。
3167

被折叠的 条评论
为什么被折叠?



