cURL Error #:Peer certificate cannot be authenticated with known CA certificates


cURL Error #:Peer certificate cannot be authenticated with known CA certificates


 

This is because of the problems in the ssl CA certificates installed for the target domanin.

The solution is to install the correct CA certificate.

Alternately, we can set curl not to verify the ssl peer.

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

 

That's all........

 

Leave a Reply

Your email address will not be published. Required fields are marked *