Using CURLOPT_CAINFO with updated CA bundle causes certificate verify failed

by admin on 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’);


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

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>