cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

 

  1. Downloading up-to-date cacert.pem file from cURL website and

  2. Paste in PHP Folder 

  3. 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

Pages