2020-08-13T11:23:42.2930076Z ## [warning] Git提取失败,退出代码为128,在重试之前先退出6.913秒。 2020-08-13T11:23:49.1339276Z ## [command] git fetch --force --tags --prune --progress --no-recurse-submodules --depth = 2 origin 2020-08-13T11:23:49.3214993Z致命:无法访问'https://*****/gitlab/****/web.git/':SSL证书问题:无法获取本地颁发者证书< / p>
答案 0 :(得分:0)
SSL证书问题:无法获取本地颁发者
从错误日志中,使用self-hosted agent
时经常会发生此问题。
当无法验证自签名证书时,会发生此错误。
您可以在本地计算机上运行以下脚本以关闭sslVerify
。
git config --global http.sslVerify false
另一方面,您可以配置git证书。
将企业CA证书添加到git config –global http.sslCAInfo.
告诉Git通过运行以下位置找到CA软件包:
git config --system http.sslCAPath / absolute / path / to / git / certificates
或将CA捆绑包复制到/ bin目录,并将以下内容添加到gitconfig文件中:
sslCAinfo = /bin/curl-ca-bundle.crt
尝试遵循blog中提到的教程。