andrewscofield / parse.com-php-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lib does not work anymore - set CURLOPT_SSL_VERIFYPEER to false

tjaussoin-luna opened this issue · comments

Hi,
For me, this lib does not work anymore. Parse.com does not answer to any requests I send.
After investigations, I found that you need to add in the "request" method of the parseRestClient class (in parse.php) the following:
curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);

Now it's back to normal. I posted it on Parse.com forum too so that they're aware they might have broken some web-apps ;-) ...

Fyi, running PHP 5.3.6 to have this problem (and it was working few days ago with this exact same version of PHP). Note that I've tested with PHP < 5.3.0 (I had to fix other incompatibilities with this framework to make it testable), and I don't need this option....

Cheers,
Tom
http://www.lunabee.com/

prolly your certificate is out of date, dl a fresh one and use CURLOPT_CAINFO setting