git SSL证书 - 访问时无效的证书链 [英] git SSL certificate- Invalid certificate chain while accessing

查看:412
本文介绍了git SSL证书 - 访问时无效的证书链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对github和git相当陌生,但我的Mac上有git setup(使用Mavericks),并在github上添加了一个回购。我使用MAMP并在Drupal站点上工作,当我尝试第一次推送到repo时,使用 git push origin master 出现错误:

 错误:SSL证书问题:访问
时证书链无效https://githib.com/...git/info/ refs?service = git-receive-pack
致命错误:HTTP请求失败

环顾四周尝试并没有任何运气地理解这个错误。我非常感谢任何帮助。如果你使用self生成的ssl密钥,你可以试试这个。

  git config --global http.sslVerify false 

请参阅
https://confluence.atlassian.com/display/FISHKB/Unable+to+clone+Git+repository+due+to+self+signed+certificate


I'm fairly new to github and git, but I do have git setup on my Mac (using Mavericks) and have added a repo on github. I'm using MAMP and working on a Drupal site, and when I try my first push to the repo, using git push origin master I get an error:

error: SSL certificate problem: Invalid certificate chain while accessing
    https://githib.com/...git/info/refs?service=git-receive-pack
fatal: HTTP request failed

I've looked around to try and make sense of this error without any luck. I'd greatly appreciate any help.

解决方案

if you use self generated ssl key, you can try this.

git config --global http.sslVerify false

Refer https://confluence.atlassian.com/display/FISHKB/Unable+to+clone+Git+repository+due+to+self+signed+certificate

这篇关于git SSL证书 - 访问时无效的证书链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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