Closed rcoenen closed 8 years ago
When you say "all of a sudden" do you mean this was indeed working on your setup recently? AFAIK PayPal's endpoints no longer support the SSLv3 protocol and this has been the case for several months.
$ curl -v -XHEAD --sslv3 https://api-3t.sandbox.paypal.com
* Adding handle: conn: 0x7fc598804400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc598804400) send_pipe: 1, recv_pipe: 0
* About to connect() to api-3t.sandbox.paypal.com port 443 (#0)
* Trying 173.0.82.83...
* Connected to api-3t.sandbox.paypal.com (173.0.82.83) port 443 (#0)
* Unknown SSL protocol error in connection to api-3t.sandbox.paypal.com:-9824
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to api-3t.sandbox.paypal.com:-9824
Can I see your app's code where you're calling the PayPal lib please?
Yep my OpenSSL was outdated... fixed by upgrading (painful on MAMP BTW)
Ah OK great! Glad you got it fixed :+1:
Hi, I am getting all of a sudden this error (expres checkout)
object(SocketException) { [protected] _attributes => array() [protected] _messageTemplate => '' [protected] _responseHeaders => null [protected] message => 'stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure stream_socket_client() [function.stream-socket-client]: Failed to enable crypto stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://api-3t.sandbox.paypal.com:443 (Unknown error)' [protected] code => (int) 2 [protected] file => '/Users/rdeman/Documents/www/myproject/lib/Cake/Network/CakeSocket.php' [protected] line => (int) 172 }
I am running MAMP 3.5 PHP Version 5.6.10 OpenSSL/0.9.8zg