Downloading up-to-date
cacert.pem
file from cURL website andPaste in PHP Folder
Setting a path to it in your php/php.ini file, e.g. on Windows:
curl.cainfo=c:\xampp\php\cacert.pem
That's it!
Error can resolve using this method but it is not recommanded . It is dangerous
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
No comments:
Post a Comment