博客
关于我
fatal: unable to access ‘https://github.com/laravel/homestead.git/‘: error setting certificate verif
阅读量:771 次
发布时间:2019-03-24

本文共 681 字,大约阅读时间需要 2 分钟。

git提示error setting certificate verify locations解决办法

问题描述

使用TortoiseGit执行pull命令时可能会出现以下错误提示:

git.exe pull --progress --no-rebase -v "origin"
fatal: unable to access 'https://github.com/konsumer/arduinoscope.git/': error setting certificate verify locations:CAfile: D:\Program Files\Git\mingw64/bin/curl-ca-bundle.crt
CApath: none

git版本信息

git version 2.9.2.windows.1

解决方法

  • 打开Git Bash窗口并执行以下命令,将CA证书文件路径配置为C:\Program Files\Git\bin\curl-ca-bundle.crt:
  • git config --system http.sslcainfo "C:\Program Files (x86)\git\bin\curl-ca-bundle.crt"

    确保路径正确,可能需要根据实际安装目录进行修改。

    1. 或者,通过限制证书验证来解决问题:
    2. git config --system http.sslverify false

      这一操作将阻止Git进行证书验证,从而绕过证书验证失败的问题。

      建议优先选择第一种方法,因为第二种方法可能会对安全性产生影响。

    转载地址:http://grfkk.baihongyu.com/

    你可能感兴趣的文章
    Openlayers中点击地图获取坐标并输出
    查看>>
    Openlayers中设置定时绘制和清理直线图层
    查看>>
    OpenLayers使用点要素作为标记
    查看>>
    Openlayers入门教程 --- 万字长篇
    查看>>
    Openlayers各组件默认的css样式
    查看>>
    Openlayers图文版实战,vue项目从0到1做基础配置
    查看>>
    VM16+ubuntu20.04+win10如何固定虚拟机的ip (固定IP)
    查看>>
    OpenLayers学习一:地图加载(以类为接口)
    查看>>
    OpenLayers学习三:地图旋转及地图跳转到某一点的方式(以类为接口)
    查看>>
    OpenLayers学习二:点标记的添加删除和修改(以类为接口)
    查看>>
    Openlayers实战教程学习大纲及引导
    查看>>
    Openlayers实战:drawstart,drawend 绘制交互应用示例
    查看>>
    Openlayers实战:extent介绍及实际应用
    查看>>
    Openlayers实战:LayerGroup添加删除显示隐藏
    查看>>
    Openlayers实战:loadstart和loadend事件
    查看>>
    Openlayers实战:modifystart、modifyend互动示例
    查看>>
    Openlayers实战:moveend事件,利用calculateExtent获取地图左上和右下的坐标
    查看>>
    Openlayers实战:overlay上播放视频
    查看>>
    Openlayers实战:select简介及select选择feature实战
    查看>>
    Openlayers实战:个性化比例尺
    查看>>