代码改变世界

cygwin下git出现ca-bundle.crt相关错误的解决办法

2012-10-26 01:55  JustRun  阅读(755)  评论(0编辑  收藏  举报

在windows下使用cygwin下的git访问需要https连接的git repository(比如github)时,有时会报告错误:

error: error setting certificate verify locations:
  CAfile: /usr/ssl/certs/ca-bundle.crt
  CApath: none while accessing https://github.com/username/repositoryname/info/refs
fatal: HTTP request failed

 

这是因为缺少证书所致。重新运行cygwin的setup.exe,然后安装ca-certificates包即可解决问题。