# 1 is set to the existence of a common name (common name) Check the server SSL certificate. Translator's Note: Common Name (Common Name) in general is that you will fill out to apply for SSL certificate domain name (domain) or subdomain (sub domain). Set to 2, checks whether there is a common name, and matches the host name provided. 0 to not check the name. In a production environment, this value should be 2 (the default value
curl_setopt ($ CH, CURLOPT_SSL_VERIFYHOST, '0');
. # Ban cURL verification of other certificates (peer's certificate) to be verified exchange certificates can be set in CURLOPT_CAINFO options
curl_setopt ( $ ch, CURLOPT_SSL_VERIFYPEER, '0' );
https requests curl returns false problem
Guess you like
Origin www.cnblogs.com/peipeiyu/p/11124818.html
Ranking