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.