-
Notifications
You must be signed in to change notification settings - Fork 98
API auth failure #479
Comments
After investigating, this seems to be related #474 I will close this issue if it works. |
I've updated my version of the SDK and I'm still receiving the same issue yoye. |
Make sure you are using the correct PHP. Make sure to run Also, I would recommend following instruction here: https://github.paypal.com/SDK-R/tls-update/blob/master/readme.md#php |
The message received is SUCCESS. Your system supports TLSv1.2 |
Hi, When running php -f sample/tls/TlsCheck.php I receive this message: and my cURL version is 7.43.0 |
Can you try running in a terminal:
|
Here's my response: PayPal_Connection_OKbool(true) On Fri, Jan 22, 2016 at 12:36 PM, Kevin Andrews [email protected]
|
And if you run the same command without the CURLOPT_SSLVERSION option?:
|
Same thing - On Fri, Jan 22, 2016 at 1:12 PM, Kevin Andrews [email protected]
|
You should be ok then, make sure to update SDK to 1.6.4 which has the CURLOPT_SSLVERSION set to 6. |
Thats where i'm stuck - I've updated to the SDK and I'm still getting SSL On the remote server it's working, and that version is 1.01. However, I On Fri, Jan 22, 2016 at 1:24 PM, Kevin Andrews [email protected]
|
I've tested on a CentOS 6 box with PHP 5.4 from scl and openssl v1.0.1 and it works. Googling openssl 0.98 tls 1.2 gives: Unfortunately, OpenSSL 0.9.8 doesn't support either TLS 1.1 or 1.2, and this support cannot be added Looks like you've hit the nail on the head :-) |
Also I have the standard version of curl from CentOS 6 which is lower than the required version and it appears to work fine with TLS 1.2 and the test api... So I think the main requirements are: PHP >= 5.3 I'm not 100% on the PHP version as I've only tested with PHP 5.4, 5.5 & 5.6 so far. |
@jaypatel512 when typing got this response Your link https://github.paypal.com/SDK-R/tls-update/blob/master/readme.md#php is currently broken. |
Hey @yoye ! Corrected Link : https://github.com/paypal/TLS-update/blob/master/README.md#php There is a good chance that your cli and web php version are not the same. The best way to determine that is by running |
cURL version are the same on both CLI and web. |
Hey @yoye ! I have fixed the link to tls-update in samples. I would recommend running samples in a localhost web server, by following instructions here: https://github.com/paypal/PayPal-PHP-SDK/wiki/Samples#instructions And run the tls-check sample, and see if you are seeing the same error. |
Thank you but it seem's that my openssl version is not correct. I've got 1.0.1c perhaps the sample could throw a warning for this. |
You can follow up on the tls version issue on the following thread: #484 Closing this issue, as a duplicate. |
When I'm trying to create a new payment on sandbox I've got an error. Here is the exception message : "error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure"
My SSL version : OpenSSL 1.0.1c 10 May 2012
SDK version : 1.6.4 (but same problem with 1.2)
The text was updated successfully, but these errors were encountered: