admin

Git提示error setting certificate verify locations解决办法
问题描述C:\Users\admin>git clone https://github.com/Kitere...
扫描右侧二维码阅读全文
29
2018/07

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

问题描述

C:\Users\admin>git clone https://github.com/Kiterepo/dns-over-https
Cloning into 'clojure-getting-started'...
fatal: unable to access 'https://github.com/Kiterepo/dns-over-https': error setting certificate verify locations:
  CAfile: D:/ProgramFlie/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
  CApath: none

解决方案

  • 方案1
  1. config --system http.sslcainfo "C:Program Files (x86)gitbincurl-ca-bundle.crt"
  • 方案2 git config --system http.sslverify false
  • 方案3 顺着报错信息在文件树里找,发现D:/Git/mingw64/libexec没有ssl目录。
    但在D:\Git\mingw64目录下有ssl/certs/ca-bundle.crt这个路径。

ssl目录复制到D:/Git/mingw64/libexec

我使用方案3解决了问题

Last modification:October 4th, 2018 at 11:52 pm

Leave a Comment