Using CURLOPT_CAINFO with updated CA bundle causes certificate verify failed

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');

Leave a Reply

Your email address will not be published. Required fields are marked *