Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

richarda's avatar

Cur Call

Hi guys am trying to do a cur over https but i get this error

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

Am using a windows system. Can anyone help

0 likes
1 reply
s4muel's avatar

the easiest way (workaround) is to set the curl options to disable the cert verification

$curl_handle = curl_init("https://host/path");
curl_setopt($curl_handle , CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle , CURLOPT_SSL_VERIFYHOST, false);

note: if this workaround is a real security issue for you, you should create trusted certificate, or at add the CA to your trusted ones. google for CURLOPT_CAINFO, set the PEM file (use this one or another trusted one) and append the server's PEM certificate in it)

Please or to participate in this conversation.