From d56305fe636cd1515ab4d9ed7374b4c86cb561f3 Mon Sep 17 00:00:00 2001 From: Massimiliano Torromeo Date: Thu, 11 May 2017 18:45:54 +0200 Subject: [PATCH] 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" --- lib/PayPal/Core/PayPalHttpConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Core/PayPalHttpConfig.php b/lib/PayPal/Core/PayPalHttpConfig.php index 0afabc3..8e431b3 100644 --- a/lib/PayPal/Core/PayPalHttpConfig.php +++ b/lib/PayPal/Core/PayPalHttpConfig.php @@ -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 );