这个问题在这里已有答案:
这是我刚刚创建的一个REPO(我的第一个),所以我可能错误地设置了它 .当我尝试将代码从我的机器推送到GIT上的REPO时,我得到:
错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:访问https时,证书验证失败:https://github.com/itay-moav/OmegaSupreme.git/info/refs
我做错了什么,我错过了设置步骤吗?
糟糕的解决方案是:
git config --global http.sslVerify false
正确的解决方案是add the root certificates(你可以see an example here) .话虽这么说,在Windows上使用像msysgit这样的Git发行版,或GitHub for Windows(或GitHub for Mac)会避免这种情况,因为它会使用已安装了正确证书的证书文件 .例如,Msysgit引用了自己的 - 完整 - bin/curl-ca-bundle.crt 文件,其中已有正确的CA.见“Unable to access github via curl” .
bin/curl-ca-bundle.crt
1 回答
糟糕的解决方案是:
正确的解决方案是add the root certificates(你可以see an example here) .
话虽这么说,在Windows上使用像msysgit这样的Git发行版,或GitHub for Windows(或GitHub for Mac)会避免这种情况,因为它会使用已安装了正确证书的证书文件 .
例如,Msysgit引用了自己的 - 完整 -
bin/curl-ca-bundle.crt
文件,其中已有正确的CA.见“Unable to access github via curl” .