解决方法:在参数处加入 {"encryp":"false","trustServerCertificate":"true"}
现象:
[ERROR] 2025-01-11 10:44:36.821 +0800 org.apache.dolphinscheduler.plugin.datasource.api.datasource.AbstractDataSourceProcessor:[124] - Check datasource connectivity for: SQLSERVER error
com.microsoft.sqlserver.jdbc.SQLServerException: 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:71c8657a-a1ee-4a6c-a65d-37b4e7745c63
原因:"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
驱动程序无法使用安全套接字层(SSL)加密建立与SQL Server的安全连接。错误:“PKIX路径生成失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径”。客户端连接ID:e52d9754-ddfc-4f5f-94ec-1122dc48262b
1.连接数据库时,如果我们需要对在客户端与服务器之间发送的所有数据使用 TLS 加密,那么就需要设置encrypt=true,同时设置trustServerCertificate=true,Microsoft JDBC Driver for SQL Server 将不验证SQL Server TLS 证书。 此设置常用于允许在测试环境中建立连接,如 SQL Server 实例只有自签名证书的情况。
2.连接数据库时,如果我们不想对在客户端与服务器之间发送的所有数据使用 TLS 加密,那么就需要设置encrypt=false.
参考:https://www.cnblogs.com/dataleaner/p/17955258 https://blog.csdn.net/T_susan/article/details/134655599
标签:数据源,dolphinscheduler,Server,certpath,PKIX,SQL,sun,security,mssql From: https://www.cnblogs.com/huft/p/18665381