当前位置:   article > 正文

【已解决】error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/etc/ssl

error setting certificate verify locations

1、问题描述

git黑窗口报错“error setting certificate verify locations”,意思就是证书位置设置错误。

  1. fatal: unable to access 'https://github.com/goSilver/daydayup.git/': error setting certificate verify locations:
  2.   CAfile: D:/dev/Git/mingw64/ssl/certs/ca-bundle.crt
  3.   CApath: none

2、问题分析

git的配置文件里的路径和实际的路径不一致了,故报错证书位置设置错误。

3、解决方法

  1. 重新设置git配置文件路径:(推荐)
git config --system http.sslcainfo "D:\_dev\Git\mingw64\ssl\certs\ca-bundle.crt"

  1. 关闭证书校验:
git config --system http.sslverify false 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/208187
推荐阅读
相关标签
  

闽ICP备14008679号