[sandipXXX@server applications]$ git clone https://github.com/sandipbhuyan/myblog.git
Cloning into 'myblog'...
fatal: unable to access 'https://github.com/sandipbhuyan/myblog.git/': Problem with the SSL CA cert (path? access rights?)
当我尝试从git克隆一个git存储库时,它始终显示此消息我试过这个
git config http.sslverify false
但同样的事情正在发生
答案 0 :(得分:0)
在确定解决此证书问题之前,您至少可以尝试切换到SSH:
git clone git@github.com:sandipbhuyan/myblog.git
为您提供generated a public/private SSH key(暂时不需要密码)和registered your public key to your account。
答案 1 :(得分:0)
我通过三个步骤解决了这个问题(Ubuntu 18.04):
(1)将ssl验证重置为true:
git config --global http.sslVerify true
(2)重新安装ca证书:
sudo apt-get install ca-certificates
(3)修改.gitconfig文件:
cd ~/
vim .gitconfig
#(change two lines of the ".gitconfig" contents as below)
sslVerify = true
sslCAinfo = /etc/ssl/certs/ca-certificates.crt