码迷,mamicode.com
首页 > 数据库 > 详细

git Problem with the SSL CA cert (path? access rights?)

时间:2017-03-06 19:31:41      阅读:1915      评论:0      收藏:0      [点我收藏+]

标签:host   hub   git clone   https   查看   code   one   安装   str   

问题:

[root@localhost opt]# git clone https://github.com/docker/docker.git
正克隆到 ‘docker‘...
fatal: unable to access ‘https://github.com/docker/docker.git/‘: Problem with the SSL CA cert (path? access rights?)

解决方法:

1,查看是否存在ca-bundle.crt

[root@localhost opt]# ls /etc/pki/tls/certs/ca-bundle.crt
/etc/pki/tls/certs/ca-bundle.crt

2,如果存在,则可能是/etc/pki/tls/certs/ca-bundle.crt 过期。

3,查看该证书对应安装包

[root@localhost opt]# rpm -qf /etc/pki/tls/certs/ca-bundle.crt
ca-certificates-xxx.noarch
4,更新或重装ca-certificates

[root@localhost opt]# yum install ca-certificates
ca-certificates-xxx.noarch

重新git clone,OK!

参考:http://dev.webdizainers.lv/articles/red-hat-problem-with-the-ssl-ca-cert

git Problem with the SSL CA cert (path? access rights?)

标签:host   hub   git clone   https   查看   code   one   安装   str   

原文地址:http://www.cnblogs.com/linprogram/p/6511397.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!