Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Add TLSv1.2 to cipher list (#844)
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
mtorromeo authored and jaypatel512 committed May 11, 2017
1 parent 4b23764 commit d56305f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PayPal/Core/PayPalHttpConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit d56305f

Please sign in to comment.