SSL certificate problem: certificate has expired

因为github clone code下来很慢,所以这边采取国内加速方式

例如一下地址
https://github.com.cnpmjs.org/zhongjhATC/AlbumCameraRecorder.git

但是Android Studio clone 出现以下错误:

Cloning into 'AlbumCameraRecorder'...
fatal: unable to access 'https://github.com.cnpmjs.org/zhongjhATC/AlbumCameraRecorder.git/': SSL certificate problem: certificate has expired

关键点是 SSL certificate problem: certificate has expired

解决思路:

重点是问题描述里面的最后一句 certificate problem: certificate has expired,意思是证书过期了。关掉SSL验证即可

解决步骤

  • 找到git目录 Git\git-cmd
  • 输入命令跳转到bin目录,cd bin
  • 输入命令运行git.exe执行关掉 SSL验证
git config --global http.sslVerify false

能帮助到您点个收藏吧!

你可能感兴趣的:(SSL certificate problem: certificate has expired)