问题:

[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

相关文章:

  • 2021-07-17
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-04-01
  • 2021-12-25
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2021-08-20
  • 2022-01-18
  • 2021-10-08
  • 2022-12-23
相关资源
相似解决方案