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

首先确保你的Debian已经安装了证书 /etc/ssl/certs.

如果不是,请重新安装它们:

sudo apt-get install --reinstall ca-certificates

因为 package does not include root certificates,添加:

sudo mkdir /usr/local/share/ca-certificates/cacert.org
sudo wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt
sudo update-ca-certificates

确保你的git确实引用了这些CA证书:

git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt

Jason C mentions another potential cause (in the comments):

It was the clock. The NTP server was down, the system clock wasn’t set properly, I didn’t notice or think to check initially, and the incorrect time was causing verification to fail.

Certificates are time sensitive.

 

原文链接:https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed