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

在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包即可解决问题。

你可能感兴趣的:(cygwin)