algoliasearch-client-php icon indicating copy to clipboard operation
algoliasearch-client-php copied to clipboard

Certificate Read

Open admin-4virtuals opened this issue 12 years ago • 1 comments

I was getting a CURL error saying curl couldn't find the cert. It has something to do with how you require files. I changed this to help.

curl_setopt($this->curlHandle, CURLOPT_CAINFO, './resources/ca-bundle.crt');

to

curl_setopt($this->curlHandle, CURLOPT_CAINFO, DIR . '/resources/ca-bundle.crt');

DIR = "underscore underscore DIR underscore underscore" Github won't let me write it.

P.S. This is for PHP 5.3+

admin-4virtuals avatar Dec 15 '13 11:12 admin-4virtuals

Thanks for the report and the solution. I have just added the fix.

speedblue avatar Dec 16 '13 16:12 speedblue