I got the same error in Windows 7. Found that the certificate path referred in the error was not existing. Instead of ...\mingw32\usr\ssl... the cert file was in ...\mingw2\ssl...
So I created a usr folder manually and moved the entire ssl tree into usr. This fixed the issue.