Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

libcurl upgrade may be required #7

Closed
mpchadwick opened this issue Mar 7, 2016 · 4 comments
Closed

libcurl upgrade may be required #7

mpchadwick opened this issue Mar 7, 2016 · 4 comments

Comments

@mpchadwick
Copy link
Contributor

We found in at the check was failing due an out of date libcurl version. Default for CentOS 6 is 7.19. I appears that libcurl > 7.40 is required for TLSv1.2 support. There's a thread on this here. Just including this in case anyone else runs into this issue.

@braebot
Copy link
Contributor

braebot commented Mar 7, 2016

Thanks @mpchadwick. Do you think we should add a blurb about that in the main readme of this repo?

@remicollet
Copy link

Notice than TLSv1.2 is available on RHEL / CentOS 6 and 7 curl version :

  • curl-7.19.7-43.el6
  • curl-7.29.0-16.el7
    $ curl --version
    curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2

    $ curl --tlsv1.2 -I https://tlstest.paypal.com/
    HTTP/1.1 200 OK

From PHP

$ php -r '
    defined("CURL_SSLVERSION_TLSv1_2") or define("CURL_SSLVERSION_TLSv1_2", 6);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/");
    curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
    var_dump(curl_exec($ch));'
PayPal_Connection_OKbool(true)

@braebot
Copy link
Contributor

braebot commented Dec 12, 2016

If you think we can update our readme, please submit a Pull Request. Thanks for your contribution!

@braebot braebot closed this as completed Dec 12, 2016
@zx1986
Copy link

zx1986 commented Mar 26, 2019

I got error with:

libcurl  7.19.7
NSS 3.12.9.0
libssh2   1.2.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants