Continuous integration VSTFS生成错误-SSL证书问题:无法获取本地颁发者证书

Continuous integration VSTFS生成错误-SSL证书问题:无法获取本地颁发者证书,continuous-integration,tfsbuild,Continuous Integration,Tfsbuild,我是新来的。我定义了一个构建。当我对生成进行排队时,出现以下错误: 2018-10-08T09:54:50.0136696Z ##[command]git config --get-all http.https://testurl.extraheader 2018-10-08T09:54:50.1425808Z ##[command]git config --get-all http.proxy 2018-10-08T09:54:50.2763750Z ##[command]git -c htt

我是新来的。我定义了一个构建。当我对生成进行排队时,出现以下错误:

2018-10-08T09:54:50.0136696Z ##[command]git config --get-all http.https://testurl.extraheader
2018-10-08T09:54:50.1425808Z ##[command]git config --get-all http.proxy
2018-10-08T09:54:50.2763750Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ********" fetch --tags --prune --progress --no-recurse-submodules origin
2018-10-08T09:54:51.1465256Z fatal: unable to access 'https://testdomain/tfs/Project/_git/Project.Test/': SSL certificate problem: unable to get local issuer certificate
2018-10-08T09:54:51.1719172Z ##[error]Git fetch failed with exit code: 128

无法验证自签名证书时会发生此错误

以下是GitHub上讨论的相同问题:

您可以尝试以下解决方法:

  • 将企业CA证书添加到
    git config–global http.sslCAInfo
  • 通过运行以下命令告诉Git在何处找到CA捆绑包:

    git配置——系统http.sslCAPath/absolute/path/to/git/certificates

  • 修改
    ca bundle.crt
    文件以包含域的根证书 在
  • 尝试使用which 包含git SChannel支持

    要使git能够使用
    SChannel
    ,您需要通过
    --gituseschannel
    在代理配置期间。例:

    /config.cmd--gituseschannel


您还可以参考此线程中提到的解决方案:

您使用哪个版本的代理?