GitBash: error setting certificate verify locations

I had tried to push changes to project using the https-URL, but it failed with an error:

error setting certificate verify locations: CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt

The problem occurred  on Windows 7 x64, with Git-2.15.0-32. You have to fix the path to ca-bundle.crt using absolute path with back-slashes. Run this command in GitBash to do it:

git config --global http.sslcainfo "C:/Program Files (x86)/Git/usr/ssl/certs/ca-bundle.crt

One thought on “GitBash: error setting certificate verify locations

  1. Jim Hokanson

    For me I ran this in a Windows command terminal (not gitbash) (note different path):

    git config –global http.sslcainfo \”C:/Program Files/Git/usr/ssl/certs/ca-bundle.crt

    This was for a problem with GitHub desktop, running in gitbash didn\’t update the path that GitHub desktop was using.


Leave a Reply

Your email address will not be published. Required fields are marked *