![]() Disable CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER byĬurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false) Ĭurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false) To disable these two options, you can use the curl_setopt function like so: //The URL we are connecting to. CURLOPT_SSL_VERIFYPEER: This option tells cURL to verify the authenticity of the SSL cert on the server.ĭisabling these two options disables SSL verification. ![]() CURLOPT_SSL_VERIFYHOST: This option tells cURL that it must verify the host name in the server cert.If you do not care about security and are looking for a quick fix, then you can simply disable the following cURL options: In plain English, it means that you have not configured cURL to connect to SSL-enabled websites. ![]() This is a common error that occurs whenever you attempt to use cURL functions to connect to an HTTPS website. SSL certificate problem: unable to get local issuer certificate. If you are using PHP’s cURL functions to connect to an HTTPS URL, then you might come across the following error:
0 Comments
Leave a Reply. |