PayPal IPN acknowledgements failing with SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure

后端 未结 8 575
一生所求
一生所求 2020-12-01 12:21

With no changes on our side and perhaps related to POODLE/SSL3 our PayPal API call to PPIPNMessage::validate is now failing with.

SSL routines:SSL3_READ_BYTE         


        
相关标签:
8条回答
  • 2020-12-01 13:11

    I have same error while check IPN with PayPal. Here is the solutions of issue

    I was worked with PHP 5.3 and PHP 5.3 is no longer support for SSL version 3. I have upgrade with PHP version with 5.4 and added below line of code. It's work for me.

    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_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    #curl_setopt($ch, CURLOPT_SSLVERSION, 4);
    curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); 
    curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'TLSv1');
    
    0 讨论(0)
  • 2020-12-01 13:13

    I second that. Lost hours trying to figure it out. On my IPN listener I had to remove 'force ssl v3'. From that moment on my IPN start working again.

    Just do a curl -v https://paypal.com

    It shows: SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA

    0 讨论(0)
提交回复
热议问题