It's a pretty common problem in Windows. You need just to set cacert.pem
to curl.cainfo
.
Since PHP 5.3.7 you could do:
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");