We can fix this in two ways.The first and quick fix would be the below one
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
The proper fix can be found here:
http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/
Reference:
http://www.php.net/manual/en/function.curl-setopt.php
http://curl.haxx.se/docs/faq.html
No comments:
Post a Comment