Add TLSv1.2 to cipher list (#844)

With openssl 1.1 using only `TLSv1` in the cipher list causes the following exception which is fixed by adding TLSv1.2

    Exception PayPal\Exception\PayPalConnectionException: "PayPal\Exception\PayPalConnectionException: error:141640B5:SSL routines:tls_construct_client_hello:no ciphers available"
This commit is contained in:
Massimiliano Torromeo
2017-05-11 18:45:54 +02:00
committed by Jay
parent 4b23764120
commit d56305fe63

View File

@@ -27,7 +27,7 @@ class PayPalHttpConfig
CURLOPT_HTTPHEADER => array(),
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_SSL_VERIFYPEER => 1,
CURLOPT_SSL_CIPHER_LIST => 'TLSv1'
CURLOPT_SSL_CIPHER_LIST => 'TLSv1:TLSv1.2'
//Allowing TLSv1 cipher list.
//Adding it like this for backward compatibility with older versions of curl
);