问题现象
git clone https://…
报错,说证书校验有问题:
·error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none·
解决方法是加一个环境变量:
Linux下:
export GIT_SSL_NO_VERIFY=1
windows下:
set GIT_SSL_NO_VERIFY 1
git
git config --global http.sslVerify false
作者:EdmundChen
链接:https://www.jianshu.com/p/7d599bdf370a
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。