0

I just installed the curl library for codeigniter written by Phil Sturgeon. I keep getting this error

"Error: 60: SSL certificate problem, verify that the CA cert is OK. Details:\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"

I've checked across the internet and the general solution was to set the following values to FALSE and 0 respectively

CURLOPT_SSL_VERIFYPEER, FALSE;
CURLOPT_SSL_VERIFYHOST, 0;
Erman Belegu
  • 4,074
  • 25
  • 39
ebuoe
  • 109
  • 2
  • 12
  • i forgot to point out that i have tried this and i'm still getting the same error – ebuoe Jul 30 '13 at 11:48
  • check this doc: http://ademar.name/blog/2006/04/curl-ssl-certificate-problem-v.html and http://stackoverflow.com/questions/6400300/php-curl-https-causing-exception-ssl-certificate-problem-verify-that-the-ca-cer – Bora Jul 30 '13 at 11:49
  • and show your `curl_init()` please. – Tobias Golbs Jul 30 '13 at 11:51
  • i was able to solve the problem thanks to the links provided by bora ,.. i appreciate – ebuoe Jul 30 '13 at 13:08

2 Answers2

0
you can use
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$curlReturned = curl_exec($ch);
if(!$curlReturned)
{
trigger_error(curl_error($ch));
} 
0

Download the CA that curl dosn't have, and load it with:

curl_setopt ($ch, CURLOPT_CAINFO, “pathto/cacert.pem”);

or if you don't want the safty of SSL, just turn of it, Boras link describes this more deeply

Puggan Se
  • 5,738
  • 2
  • 22
  • 48