SSL证书问题:无法在git中获取本地颁发者证书

car*_*era 10 git

我在推送 git 时遇到问题。显示此错误消息:

SSL certificate problem: unable to get local issuer certificate
Run Code Online (Sandbox Code Playgroud)

小智 4

之前有多种方法解决了此问题:

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

B. 通过运行以下命令告诉 Git 在哪里可以找到 CA 捆绑包:

git config --system http.sslCAPath /absolute/path/to/git/certificates
Run Code Online (Sandbox Code Playgroud)

或将 CA 捆绑包复制到该/bin目录并将以下内容添加到gitconfig文件中:

sslCAinfo = /bin/curl-ca-bundle.crt
Run Code Online (Sandbox Code Playgroud)

C. 重新安装 Git。

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