SSL证书问题:无法在git中获取本地颁发者证书 [英] SSL certificate problem: unable to get local issuer certificate in git

查看:562
本文介绍了SSL证书问题:无法在git中获取本地颁发者证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按git时遇到问题.出现此错误消息:

I have a problem when pushing git. this error message shows up:

SSL certificate problem: unable to get local issuer certificate

推荐答案

以前有几种方法可以解决此问题:

There are several ways this issue has been resolved previously:

A.确保根证书已添加到git.exe的证书存储中,如此处所述.

A. Ensure the root cert is added to git.exe's certificate store as discussed here.

B.通过运行告诉Git在哪里可以找到CA捆绑软件:

B. Tell Git where to find the CA bundle by running:

git config --system http.sslCAPath/absolute/path/to/git/certificates或将CA捆绑包复制到/bin目录,然后将以下内容添加到gitconfig文件中:

git config --system http.sslCAPath /absolute/path/to/git/certificates or copying the CA bundle to the /bin directory and adding the following to the gitconfig file:

sslCAinfo =/bin/curl-ca-bundle.crt

sslCAinfo = /bin/curl-ca-bundle.crt

C.重新安装Git.

C. Reinstalling Git.

D.确保存在完整的CA,包括根证书.

D. Ensuring that the complete CA is present, including the root cert.

这篇关于SSL证书问题:无法在git中获取本地颁发者证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆