另一个Paypal Curl / SSL v3握手错误 - SSL23_GET_SERVER_HELLO:sslv3警报握手失败 [英] Yet another Paypal Curl / SSL v3 Handshake Error - SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

查看:647
本文介绍了另一个Paypal Curl / SSL v3握手错误 - SSL23_GET_SERVER_HELLO:sslv3警报握手失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有很多人提出这个问题,但我迄今为止阅读的解决方案都没有为我工作。

I know there are a number of people asking this question, but none of the solutions I've read to date have worked for me.

Paypal IPN侦听器在curl回发中失败。 Curl错误:错误:14077410:SSL例程:SSL23_GET_SERVER_HELLO:sslv3警报握手失败

A site with a Paypal IPN listener fails in the curl postback. Curl Error: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

我的curl选项如下:

My curl options look as follows:

curl_setopt($ch, CURLOPT_URL, 'https://www.sandbox.paypal.com/cgi-bin/webscr');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: www.sandbox.paypal.com'));
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); 
curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'TLSv1');

我的卷曲版本是7.29.0。这是一个基于lighttpd的服务器。

My curl version is 7.29.0. This is on a lighttpd based server.

我有一种感觉这是因为curl不是接受我的尝试强制tls,但我不知道如何纠正。

I have a feeling this is because curl is not "accepting" my attempts to force tls, but I'm unsure how to rectify.

推荐答案

更新我的发行版,因此OpenSSL确实解决了问题。

Updating my distribution and thus OpenSSL did solve the problem.

这篇关于另一个Paypal Curl / SSL v3握手错误 - SSL23_GET_SERVER_HELLO:sslv3警报握手失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆