描述
使用 git clone github上的项目时报错:server certificate verification failed,比如
git clone https://github.com/eclipse/paho.mqtt.c.git
Cloning into 'paho.mqtt.c'...
fatal: unable to access 'https://github.com/eclipse/paho.mqtt.c.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
解决
取消ssl验证
git config --global http.sslverify false
# 查看配置
git config --list
之后再尝试