curl: (35) Unknown SSL protocol error in connection to abc.com:443
curl: (35) Unknown SSL protocol error in connection to abc.com:443
出现此错误可能的原因:
1、PHP版本过低,我从php5.6升级到php7.2
2、对于访问https链接,添加跳过验证对等证书和域名
if(strpos(strtolower($url), 'https://')===0){ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //https请求时跳过cURL验证对等证书 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //https请求时跳过cURL验证域名 }