I'm trying to integrate PHP script with Salesforce by following the example on the link: http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php

But I get the error message at demo_rest.php page which says: Error: call to URL https://ap2.salesforce.com/services/data/v20.0/sobjects/Account/ failed with status 0, response , curl_error SSL certificate problem: unable to get local issuer certificate, curl_errno 60

I already configured the cacert.pem in php.ini file(WAMP Server)


1 Answer 1


Just insert some piece of code under the demo_rest.php Line no 11 below

curl_setopt($curl,CURLOPT_SSL_VERIFYHOST => false) curl_setopt($curl,CURLOPT_SSL_VERIFYPEER => false)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .