H
H
hovdev2018-09-21 12:10:50
linux
hovdev, 2018-09-21 12:10:50

Curl 7.29 works with tls v1.2?

Hello everyone, there is one strange moment, I read in the documentation that curl supports the tls v1.2 protocol from version 7.34
--tlsv1.2
(TLS) Forces curl to use TLS version 1.2 or later when connecting to a remote TLS server.
Added in 7.34.0.

But despite this, when I make a request like
curl --tlsv1.2 https://tlstest.paypal.com/
or via php
php -r '$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)); var_dump(curl_error($ch));'
Result is always successful
PayPal_Connection_OK
bool(true)

The crux of the matter is, does 7.29 support connection via tls v 1.2 or not?
If not, why does it work for me?
because if it works, then I will not update and do unnecessary actions on the server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2018-09-21
@ky0

You copied and pasted a key from the mana that forces you to use TLS 1.2. Nobody says that its support was added in this version. Also, of course, it depends on the library that is used to work with SSL.

V
Vladimir, 2018-09-21
@MechanID

in the server console, do curl -v https://tlstest.paypal.com/
look for the line "SSL connection using"
I have for example SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
see what you have and everything will be clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question