git, Windows 7 & error: error setting certificate verify locations:

git, Windows 7 & error: error setting certificate verify locations:

Very annoying!

I’ve been trying different version control systems for sometime now and I just couldn’t get git on Windows to work.

I was constantly getting:
$ git fetch “https://some.website.com”
error: error setting certificate verify locations:
CAfile: /bin/curl-ca-bundle.crt
CApath: none
while accessing https://some.website.com/info/refs

fatal: HTTP request failed
error: error setting certificate verify locations

I found the solution here.

  1. Open Notepad with Administrator privileges
  2. Open the file gitconfig. For me, this was in the folder:  C:\Program Files (x86)\Git\etc
  3. The line “sslCAinfo = /bin/curl-ca-bundle.crt” is using relative references.  Change this to “sslCAinfo = C:/Program Files (x86)/Git/bin/curl-ca-bundle.crt”

Too easy!