Search code examples
c#azure-devopsazure-pipelinesnuget-package

Self signed certificate in certificate chain - NuGetToolInstaller


I have configured an Azure DevOps pipeline. When I try to run NuGetToolInstaller, I received ERR:self signed certificate in certificate chain. What is the solution to this error?

Azure Devops Dashboard Error Output


Solution

  • If you use Azure DevOps service, and your organization is secured with a firewall or proxy server, you need to add certain IP addresses and domain URLs to the Allow list by following this doc: 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 to configure your agent.

    If you use on-premise Azure DevOps Server, please refer to this doc: Run the agent with a self-signed certificate to check this issue.

    In addition, if you recently changed your account, you could refer to this thread to check if its solution works for your issue.

    BTW, you could review debug logs to diagnose pipeline issues.