Skip to content

Commit 2fe9bda

Browse files
authored
Merge pull request #4 from linkstreet/enhancement/tls1.2
Force requests to use TLS 1.2 instead of 1.1
2 parents fe30d71 + 63492ff commit 2fe9bda

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Box/Services/BaseService.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,15 @@ class BaseService
2727
*/
2828
public function __construct(AppAuth $app_auth)
2929
{
30-
$this->guzzle_client = new GuzzleClient();
30+
$this->guzzle_client = new GuzzleClient([
31+
'defaults' => [
32+
'config' => [
33+
'curl' => [
34+
CURLOPT_SSLVERSION => CURL_SSLVERSION_TLSv1_2
35+
]
36+
]
37+
]
38+
]);
3139

3240
$this->app_auth = $app_auth;
3341
}

0 commit comments

Comments
 (0)