Closed GoogleCodeExporter closed 9 years ago
That means your server is unable to perform peer SSL certificate verification.
Since the Windows version of PHP and it doesn't come bundled with a Certificate
Authority bundle, you need to add it yourself.
You need to add the following line to
google-api-php-client/src/io/apiCurlIO.php right before the line "$data =
@curl_exec($ch);"
curl_setopt($ch, CURLOPT_CAINFO, 'c:/path/to/ca-bundle.crt');
You'll need to replace 'c:/path/to/ca-bundle.crt' to where ever you have the
ca-bundle.crt file.
Here's a good article explaining what's going on in the windows version of PHP.
http://richardwarrender.com/2007/05/the-secret-to-curl-in-php-on-windows/
See this thread for more information:
https://groups.google.com/d/msg/google-api-php-client/S1GBH6-2KOg/92zG1mlSFIIJ
Original comment by chiragsh...@gmail.com
on 15 Sep 2011 at 10:23
Original issue reported on code.google.com by
mouse...@gmail.com
on 15 Sep 2011 at 9:29