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!

3 Comments

  1. you saved me for hours of pulling out my hair…thank you!

  2. Thank you a ton! Edited the config file with programmer’s not pad and now I can actually use github! Worked great!

  3. Philippe

    Great advice! Thank you for your help.