证书链中的自签名证书 - NuGetToolInstaller

Self signed certificate in certificate chain - NuGetToolInstaller

我已经配置了 Azure DevOps 管道。当我尝试 运行 NuGetToolInstaller 时,我收到 ERR:self signed certificate in certificate chain。此错误的解决方案是什么?

如果您使用 Azure DevOps 服务,并且您的组织受到防火墙或代理服务器的保护,您需要通过以下操作将某些 IP 地址和域 URL 添加到允许列表此文档:Allowed address lists and network connections. And if you use self-hosted agents, please follow this doc: Run a self-hosted agent behind a web proxy 用于配置您的代理。

如果您使用本地 Azure DevOps 服务器,请参阅此文档:Run the agent with a self-signed certificate 以检查此问题。

此外,如果您最近更改了您的帐户,您可以参考此thread来检查它的解决方案是否适用于您的问题。

顺便说一句,你可以 review debug logs to diagnose pipeline issues