Disabling the certificate will make you vulnerable to a person in an average attack, you can download using the certificate
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt ($ch, CURLOPT_CAINFO, "PATH_TO_CERTIFICATE/cert.pem");
To get the certificate, follow this guide.
Then click "View Certificate":

Click the Details tab on the cerficates page and select a certificate at the top of the hierarchy. This is a CA certificate.

Then click βExportβ and save the CA certificate to the location of your choice, making sure that you select the X.509 (PEM) certificate as the type / format of the save.

Image Source: http://unitstep.net/
source share