标签:not 原因分析 default was linux 错误 cti efault support
报错信息使用php的curl请求https链接时报"error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure"
错误
使用php的curl扩展时,curl_setop的CURLOPT_SSLVERSION取值为3,对应协议为ssl v3,因为之前的POODLE 病毒爆发,许多网站禁用了sslv3(nginx默认是禁用的,ssl_protocols 默认值为TLSv1 TLSv1.1 TLSv1.2;)
将
curl_setopt($ch, CURLOPT_SSLVERSION, 3);
改为
curl_setopt($ch, CURLOPT_SSLVERSION, 4);
CURL_SSLVERSION_DEFAULT (0)
CURL_SSLVERSION_TLSv1 (1),
CURL_SSLVERSION_SSLv2 (2),
CURL_SSLVERSION_SSLv3 (3),
CURL_SSLVERSION_TLSv1_0 (4),
CURL_SSLVERSION_TLSv1_1 (5),
CURL_SSLVERSION_TLSv1_2 (6).
php-35-error14094410ssl-routinesssl3-read-bytessslv3-alert-handshake-failur
when-was-tls-1-2-support-added-to-openssl
php使用curl扩展请求HTTPS链接报sslv3 alert 错误
标签:not 原因分析 default was linux 错误 cti efault support
原文地址:https://blog.51cto.com/xoyabc/2417615