PHP7 curlopt_ssl_verifypeer Disabled, curl terminates the authentication from the server. Use the Curlopt_cainfo option to set the certificate using the Curlopt_capath option to set the certificate directory if Curlopt_ssl_verifypeer (the default value is 2) is enabled, Curlopt_ssl_ Verifyhost needs to be set to true otherwise set to False. The default is true from Curl 7.10. The default binding installation starts with Curl 7.10. Curlopt_ssl_verifyhost1 checks if a common name exists in the server SSL certificate (common name). Note: The common name (Common name) is generally filled in with the domain name (domain) or subdomain (sub domain) where you will be applying for an SSL certificate. 2 checks if the common name exists and matches the host name provided. When you need to disable these two parameters (especially under the Widows server) in the development environment, you will return False Curl_error () after the validation is complete. Returns an empty string
PHP7 Curl returns false error returns an empty string