-
Notifications
You must be signed in to change notification settings - Fork 102
Unknown SSL protocol error in connection to tlstest.paypal.com:443 after installing version "1.6.4" PHP SDK #484
Comments
When running from CLI make sure to include the following CURL OPT:
it was included in the 1.6.4 SDK so will be required when testing from CLI:
|
Also this issue may be of use: I've listed out some of the minimum requirements from testing on our servers. |
@Caffe1neAdd1ct , when I added |
What versions of PHP and OpenSSL have you got installed? On Mon, Jan 25, 2016 at 1:13 PM, kesongxie [email protected] wrote:
|
@Caffe1neAdd1ct |
Openssl must be at 1.0.1 or higher for TLS 1.2. Looks like you'll need to update it to a newer version.
|
@Caffe1neAdd1ct I realized I have to update it, since I was debugging on my MAMP environment, and at the terminal when I use |
Please keep in mind that openssl installed in your machine by itself, which generally is shown by There are few tutorials out there that could help you link the newer version of openssl to your php installation. http://stackoverflow.com/questions/7508857/how-do-i-get-the-new-version-of-openssl-to-display-in-my-phpinfo If nothing, downloading the latest php version would help resolve this issue. |
@jaypatel512 when I'm running php 7 at my MAMP Pro, it still says OpenSSL 0.9.8, I think it's the MAMP itself run with openssl 0.9.8. Can I manually change it to version>=1.0? I have done a research on stack overflow, but haven't found something that is able to point me to a right direction |
I'm having the same problem @kesongxie and it really is a MAMP issue and nothing to do with PayPal. I've not found any methods of updating the version of OpenSSL that MAMP uses. If you come across anything I'd love to hear it as this is slowing me right down! I've emailed their support and am waiting to hear back. |
Hey All ! I have found a relatively helpful link to update your MAMP installation. This is not an official answer, just a pointer to help few developers who are having a hard time updating it. http://jaspan.com/openssl-support-php-under-mamp Getting a more concrete answer from MAMP would be a wonderful help here. |
They replied to me and said that:
So it looks like going your way and compiling the newer extension is the way to go. Thanks for the link! I'll give that a try later on! |
@jaypatel512 @marcfowler I compiled the new extension based on the instructions of the recommended link, copied the created openssl.so to the suggested extensions module and referenced the file in the active php.ini template. Unfortunately, it remains the same. |
@jaypatel512 your trello board/card link is empty. |
Hey @vovafeldman ! That is just for internal access, and you wont be able to see those ! |
@jaypatel512 Gotcha 👍 Then, what MAMP users can do? It looks like there's no way for me to test the API from my local environment. I spend the whole day yesterday googling for a solution and nothing helped. |
I'm having the same issue with MAMP. Any ideas? |
@stefanoortisi until MAMP update, there's nothing much we can do except not use MAMP for this particular thing. Pretty frustrating but they told me it's only 6-8 weeks away, so we can hope they stick to that! |
That's really annoying. Ok, thanks anyway @marcfowler |
Hey guys @marcfowler @stefanoortisi |
Guys, have you considered switching to another stack provider until the update? Perhaps xampp, that's what I use. |
how to update the curl ssl version? one server: cURL support enabled openssl OpenSSL support enabled And the OpenSSL Library Version is different with Header Version. Could anyone help? |
Our environment is apache2.x_php 5.4.30 + OpenSSL 1.0.1e-fips 11 Feb 2013 But ,i use php command to run,system reply "bool(false)" |
Closing due to inactivity. For any future TLS issues, please see the PayPal TLS-update repo. |
I'm testing using sandbox at localhost
I was testing my TSL at index.php, using the information provided at https://github.com/paypal/TLS-update
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/"); var_dump(curl_exec($ch)); var_dump(curl_error($ch)); ?>
I got
bool(false) string(67) "Unknown SSL protocol error in connection to tlstest.paypal.com:443 "
when I run
$ curl --version
I got
curl 7.30.0 (x86_64-apple-darwin13.0) libcurl/7.30.0 SecureTransport zlib/1.2.5 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
when I did
var_dump(curl_version());
i have
array(9) { ["version_number"]=> int(469248) ["age"]=> int(3) ["features"]=> int(558621) ["ssl_version_number"]=> int(0) ["version"]=> string(6) "7.41.0" ["host"]=> string(25) "x86_64-apple-darwin10.8.0" ["ssl_version"]=> string(14) "OpenSSL/0.9.8z" ["libz_version"]=> string(5) "1.2.8" ["protocols"]=> array(20) { [0]=> string(4) "dict" [1]=> string(4) "file" [2]=> string(3) "ftp" [3]=> string(4) "ftps" [4]=> string(6) "gopher" [5]=> string(4) "http" [6]=> string(5) "https" [7]=> string(4) "imap" [8]=> string(5) "imaps" [9]=> string(4) "ldap" [10]=> string(5) "ldaps" [11]=> string(4) "pop3" [12]=> string(5) "pop3s" [13]=> string(4) "rtsp" [14]=> string(3) "smb" [15]=> string(4) "smbs" [16]=> string(4) "smtp" [17]=> string(5) "smtps" [18]=> string(6) "telnet" [19]=> string(4) "tftp" } }
Any insight will be appreciated
The text was updated successfully, but these errors were encountered: