Using the curl call on the command line to skip the SSL certificate check method, the friend you need can refer to the following. Symptom (s): Php Curl calls HTTPS error troubleshooting: Try using curl calls on the command line. Reason: The server room cannot authenticate the SSL certificate.
Workaround: Skip SSL certificate checking.
Symptom (s): the PHP Curl call Curl_exec returns BOOL (false), and the command line curl calls normally.
Troubleshooting methods:
Return:
Further investigation:
curl_setopt ($ch, Curlopt_header, true);
return:
http/1.1 Continue
Connection:close
Reason: Php Curl received HTTP 100 is over, should continue to receive HTTP 200
Solution:
Return:
String (?) "SSL certificate problem:unable to get local issuer certificate"
Solution:
curl_setopt ($ch, Curlopt_ssl_verifypeer, false);
curl_setopt ($ch, Curlopt_ssl_verifyhost, false);