Certificate problem
The certificate should be a self-signed certificate, which is not authoritative
You can pass curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); let it not verify the SSL certificate
The best solution is to obtain the certificate through an authoritative certificate authority