git - Answer for yourself error CAfile: ssl/certs/ca-bundle.crt CApath: none
巴扎黑
巴扎黑 2017-05-02 09:25:55
0
2
1132
  • Error code

    fatal : unable to access 'https://***/': error ****** 
    CAfile: *****/Git/minw64/ssl/certs/ca-bundle.crt
    CApath: none

  • Cause of the error, changing the Git installation directory may cause this problem


  • Solution: Modify the file content under C:/ProgramData/Git/ to the correct path.


巴扎黑
巴扎黑

reply all(2)
曾经蜡笔没有小新

I also encountered this problem today. I tried your solution but it didn't work. The reason is that in addition to this config file, there are other configuration files covering this config file. What's crazy is that uninstalling and reinstalling git doesn't work. Can't solve the problem.
In fact, you can use the command git config -l to list all current configurations, check whether there are any configuration errors in the sslCAInfo item, and then modify them.
Just modify this file, C:Usersusername.gitconfig

巴扎黑

I just encountered this problem today, so I will post my solution here for reference by those who need it

$ git config --system http.sslcainfo "**D:\Git\mingw64\ssl\certs\ca-bundle.crt**" 

Replace the bold part with the correct configuration path

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template