Skip to content

Commit 96bd3dd

Browse files
committed
Initialize CA info for getApiEndpointForUser call
1 parent 9a5b1b6 commit 96bd3dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NutshellApi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ protected function _getApiEndpointForUser($username) {
152152
curl_setopt($curl, CURLOPT_POST, true);
153153
curl_setopt($curl, CURLOPT_POSTFIELDS, $this->json_encode($payload));
154154
curl_setopt($curl, CURLOPT_HEADER, false);
155+
curl_setopt($curl, CURLOPT_CAINFO, dirname(__FILE__).'/geotrust_global_ca.crt');
155156
$result = curl_exec($curl);
156157
if (curl_errno($curl)) {
157158
throw new NutshellApiException('Curl error #' . curl_errno($curl) . ' while finding endpoint: '. curl_error($curl));

0 commit comments

Comments
 (0)