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/
sudo wget -P /usr/local/share/ca-certificates/
sudo update-ca-certificates


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.