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);