It’s a pretty common problem in Windows, curl used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it’ll reject all SSL certificates as unverifiable.
You need just to set cacert.pem to curl.cainfo.
Since PHP 5.3.7 you could do:
1.download http://curl.haxx.se/ca/cacert.pem and save it somewhere.
2.update php.ini — add curl.cainfo = “PATH_TO/cacert.pem”
Otherwise you will need to do the following for every cURL resource:
curl_setopt ($ch, CURLOPT_CAINFO, “PATH_TO/cacert.pem”);
What do you think?