无法在 Azure DevOps 中使用下载安全文件任务

问题描述 投票:0回答:1

我在使用下载安全文件任务时收到错误: ##[错误]错误:无法获取本地颁发者证书

执行 powershell 脚本的普通管道运行没有问题。

我尝试下载带有 pdf 和证书的安全文件并得到相同的错误

例如:

steps:
- task: DownloadSecureFile@1
  displayName: 'Download File'
  inputs:
    secureFile: SelfSigned.pfx

steps:
- task: DownloadSecureFile@1
  displayName: 'Download File'
  inputs:
    secureFile: 'test.pdf'

我尝试过以下方法

  1. git config --global http.sslbackend schannel,我一直有这个
  2. 我尝试使用下面链接中的说明将所有证书从 tfs 服务器复制到 ca-bundle.crt,最初我只有根证书
  3. git config --global http.sslVerify false(不起作用后恢复)

SSL证书问题:无法获取本地颁发者证书AZURE DEVOPS

https://learn.microsoft.com/en-us/archive/blogs/phkelley/adding-a-corporate-or-self-signed-certificate-authority-to-git-exes-store

azure-devops certificate
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.