Ubuntu证书发行
我正试图在我的Ubuntu机器上使用curl和git。我正在学习设置vim的教程,但遇到了证书问题。我跑Ubuntu证书发行,ubuntu,curl,certificate,ca,Ubuntu,Curl,Certificate,Ca,我正试图在我的Ubuntu机器上使用curl和git。我正在学习设置vim的教程,但遇到了证书问题。我跑 sudo curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 我得到以下错误: % Total % Received % Xferd Average Speed Time Time
sudo curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
我得到以下错误:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (77) error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
类似地,当我尝试运行git克隆时,会出现以下错误
Cloning into '/home/umar/.vim/bundle/Vundle.vim'...
fatal: unable to access 'https://github.com/VundleVim/Vundle.vim.git/': server certificate verification failed. CAfile: none CRLfile: none
我检查了/etc/ssl/certs/ca-certificates.crt是否存在,它确实存在。我是linux新手,对证书有着非常基本的了解。是什么导致了这些问题?我不得不重新安装ca证书包,它解决了这个问题