git 证书错误

git clone https://github.com/openstack-dev/devstack.git

Cloning into 'devstack'...

error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/openstack-dev/devstack.git/info/refs

fatal: HTTP request failed

解决办法:

主要方式验证


2
3
4
5
6
7
8
9
10
#(在客户机上执行以上操作)
#主要方式:
git config --global http.sslverify false
 
#其他
git uses gnutls for this stuff, which requires the CA be specified. This can be done with per-respository with:
git config http.sslcapath
OR
git config http.sslcainfo
You can also specify --system or --global.
原文地址:https://www.cnblogs.com/baoyiluo/p/3880418.html