Skip to content

Commit fc0e7e5

Browse files
author
Sukanya
committed
Added SSL cert and add one line in httpsignaturegenerator
1 parent 7c5ebbb commit fc0e7e5

File tree

3 files changed

+3341
-0
lines changed

3 files changed

+3341
-0
lines changed

lib/ApiClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ public function callApi($resourcePath, $method, $queryParams, $postData, $header
183183
if ($this->config->getSSLVerification() === false) {
184184
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
185185
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
186+
}else{
187+
curl_setopt($curl, CURLOPT_CAINFO, "../lib/ssl/cert.pem")
186188
}
187189

188190
if ($this->config->getCurlProxyHost()) {

lib/Authentication/Http/HttpSignatureGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use CyberSource\Authentication\Core\TokenGenerator as TokenGenerator;
88
use CyberSource\Authentication\Core\AuthException as AuthException;
99
use CyberSource\Authentication\Log\Logger as Logger;
10+
use CyberSource\Authentication\Util\GlobalParameter as GlobalParameter;
1011

1112
class HttpSignatureGenerator implements TokenGenerator
1213
{

0 commit comments

Comments
 (0)