SSL certificate problem: unable to get local issue

SSL certificate problem: unable to get local issue

今天在使用git克隆一个库的时候,报错如下:

正克隆到 'lepus'...
fatal: unable to access 'https://github.com/ruzuojun/lepus.git/': SSL certificate problem: unable to get local issuer certificate

隐隐约约记得之前遇到过这种报错,但忘了解决办法,于是上网搜索一波。发现是https访问的的证书问题,我就使用命令直接去掉ssl的验证,问题解决。

解决方法:

[root@monitor local]# git config --global http.sslVerify false