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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git Problem with the SSL CA cert (path? access rights?)相关的知识,希望对你有一定的参考价值。

问题:

[[email protected] 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

[[email protected] 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,查看该证书对应安装包

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

[[email protected] 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?)的主要内容,如果未能解决你的问题,请参考以下文章

How to build the vsftpd server with TLS/SSL encryption

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not 解决方法(

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

GIT PUSH SSL certificate problem

使用git报ssl certificate problem self signed certificate错误解决

解决git clone报错SSL certificate problem