Posts Tagged ‘fb’

Using CURLOPT_CAINFO with updated CA bundle causes certificate verify failed

by on Friday, February 1st, 2013

1. Open this link : Click Here.

2. Save the file on your coputer with cacert.pem name.

2. use

curl_setopt($ch, CURLOPT_CAINFO,┬ádirname(__FILE__) . ‘/cacert.pem’);

OR

curl_setopt($ch, CURLOPT_CAINFO, '/path/to/cacert.pem');