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

1. Problem description

The git black window reports an error "error setting certificate verify locations", which means that the certificate location is set incorrectly.

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

2. Problem Analysis

The path in the git configuration file is inconsistent with the actual path, so the wrong certificate location setting error is reported.

3. Solution

  1. Reset the git configuration file path: (recommended)
git config --system http.sslcainfo "D:\_dev\Git\mingw64\ssl\certs\ca-bundle.crt"

  1. Turn off certificate verification:
git config --system http.sslverify false 

 

Guess you like

Origin blog.csdn.net/m0_56190554/article/details/130242753