错误:14094410:SSL例程:SSL3_READ_BYTES:sslv3警报握手失败发生

时间:2017-01-09 09:14:10

标签: php ssl curl openssl

当我使用curl请求时,会出现错误。 我已经尝试了另一篇文章的答案,但没有成功。

curl_setopt( $curl, CURLOPT_SSL_CIPHER_LIST, 'SSLv3');` // add this, not worked

curl_setopt( $curl, CURLOPT_SSL_CIPHER_LIST, 'TLSv1');` // add this, not worked

我的服务器版本:

  • PHP Version 5.2.17
  • OpenSSL 0.9.8e-fips-rhel5
  • 的libcurl / 7.15.5

代码:

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt( $curl, CURLOPT_SSLVERSION, 3);
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, 0 );
curl_setopt( $curl, CURLOPT_SSL_VERIFYHOST, 0 );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_HTTPHEADER, $_headers );
$result = curl_exec( $curl );
  

错误:错误:14094410:SSL例程:SSL3_READ_BYTES:sslv3警报握手失败

0 个答案:

没有答案