You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10下Git拉取GitHub仓库遇SSL本地颁发者证书获取失败问题

Windows 10下Git访问GitHub报SSL证书错误的解决办法

以下是针对fatal: unable to access 'https://github.com/XXXXX': SSL certificate problem: unable to get local issuer certificate报错的几种解决方式:

  • 临时跳过SSL验证(仅应急使用)
    执行命令关闭全局SSL验证:

    git config --global http.sslVerify false
    

    问题解决后务必恢复验证以保证安全:

    git config --global http.sslVerify true
    
  • 更新Git根证书

    1. 找到Git安装目录下的证书文件,常见路径为:
      • 64位Git:C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt
      • 32位Git:C:\Program Files (x86)\Git\mingw32\ssl\certs\ca-bundle.crt
    2. 替换该文件内容为最新的Mozilla根证书集合,或执行命令指定证书路径:
      git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt"
      
      注意:路径需与你的Git实际安装路径匹配。
  • 排查代理与防火墙干扰

    • 暂时关闭VPN、代理软件后重试git pull
    • 临时关闭Windows防火墙,测试是否是拦截导致的问题
    • 若处于公司内网,确认是否存在内网SSL证书拦截,需将公司根证书导入Windows系统证书库
  • 重新安装Git
    卸载当前Git版本,下载最新稳定版重新安装,安装过程中勾选Use the OpenSSL library选项,确保证书配置正常。

内容的提问来源于stack exchange,提问作者Ya.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.27 02:32:36