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

时间:2018-10-08 10:01:10

标签: continuous-integration tfsbuild

我是CI的新手。我有一个定义的版本。将构建队列时,出现以下错误:

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

1 个答案:

答案 0 :(得分:0)

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

这是在GitHub上讨论的同一问题:https://github.com/Microsoft/azure-pipelines-agent/issues/688

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

您还可以参考此线程中提到的解决方案:SSL certificate problem: Unable to get local issuer certificate