cygwin:curl:(77)设置证书验证位置时出错

在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:curl:(77)设置证书验证位置时出错
https://johnnysxy.github.io/2023/08/18/cygwin-curl-77-设置证书验证位置时出错/
作者
Johnny Song
发布于
2023年8月18日
许可协议