forked from LiveCarta/PayPal-PHP-SDK
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:
committed by
Jay
parent
4b23764120
commit
d56305fe63
@@ -27,7 +27,7 @@ class PayPalHttpConfig
|
|||||||
CURLOPT_HTTPHEADER => array(),
|
CURLOPT_HTTPHEADER => array(),
|
||||||
CURLOPT_SSL_VERIFYHOST => 2,
|
CURLOPT_SSL_VERIFYHOST => 2,
|
||||||
CURLOPT_SSL_VERIFYPEER => 1,
|
CURLOPT_SSL_VERIFYPEER => 1,
|
||||||
CURLOPT_SSL_CIPHER_LIST => 'TLSv1'
|
CURLOPT_SSL_CIPHER_LIST => 'TLSv1:TLSv1.2'
|
||||||
//Allowing TLSv1 cipher list.
|
//Allowing TLSv1 cipher list.
|
||||||
//Adding it like this for backward compatibility with older versions of curl
|
//Adding it like this for backward compatibility with older versions of curl
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user