美文网首页测试开发
Git_报错:SSL certificate problem:

Git_报错:SSL certificate problem:

作者: 古佛青灯度流年 | 来源:发表于2017-10-24 08:34 被阅读163次

比如我在mac下用git pull 就提示

fatal: unable to access 'https://gitee.com/ZhongJianZhiYun/root_server.git/': 
SSL certificate problem: Invalid certificate chain

参考了一些文章,解决方法其实就是“直接不管ssl证书的事儿”-_-|||
方法如下:
1.创建临时环境变量:

windows上命令行输入:
set GIT_SSL_NO_VERIFY=true git clone  
Linux下:
env GIT_SSL_NO_VERIFY=true git push  

2.用git自带的配置命令:

git config --global http.sslVerify false  

问题解决。
@晴-2017-10-24 08:34:16

相关文章

网友评论

    本文标题:Git_报错:SSL certificate problem:

    本文链接:https://www.haomeiwen.com/subject/xdxtpxtx.html