尽管已知CA证书,但Git SSL证书验证不起作用

时间:2019-05-21 09:23:10

标签: git ssl

我写了一个Jenkins管道,希望将其推送到网络中的Github存储库中。 Git抱怨Host Key Verification推送失败。

通过sh "git config http.sslVerify false"禁用SSL证书验证时,它可以正常工作。但是,这不是专业的解决方案。

我尝试将路径添加到CA证书文件,如下所示: git config http.sslCAInfo mypath/cert.pem

Still Git抱怨

git push --no-verify --set-upstream https://****:****@githost/org/repo.git branch

fatal: unable to access 'https://****:****@githost/org/repo.git/': Problem with the SSL CA cert (path? access rights?)

有什么办法解决吗?

0 个答案:

没有答案
相关问题