Skip to content

Commit 7447003

Browse files
committed
Fix ca-path error
1 parent fc0e7e5 commit 7447003

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function callApi($resourcePath, $method, $queryParams, $postData, $header
184184
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
185185
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
186186
}else{
187-
curl_setopt($curl, CURLOPT_CAINFO, "../lib/ssl/cert.pem")
187+
curl_setopt($curl, CURLOPT_CAINFO, dirname(dirname(__FILE__)) . '/lib/ssl/cacert.pem');
188188
}
189189

190190
if ($this->config->getCurlProxyHost()) {
File renamed without changes.

0 commit comments

Comments
 (0)