Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
fix path for ca_bundle in CasperAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
teknogeek committed Oct 10, 2015
1 parent 0a0d718 commit 6d4d7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Casper-API-PHP/CasperAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function request($endpoint, $headers = array(), $params = array(), $post
//If cURL doesn't have a bundle of root certificates handy,
//we provide ours (see http://curl.haxx.se/docs/sslcerts.html).
if(curl_errno($ch) == 60){
curl_setopt($ch, CURLOPT_CAINFO, "../ca_bundle.crt");
curl_setopt($ch, CURLOPT_CAINFO, __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."ca_bundle.crt");
$result = curl_exec($ch);
}

Expand Down Expand Up @@ -238,7 +238,7 @@ public function externalRequest($url, $headers = array(), $params = array(), $po
//If cURL doesn't have a bundle of root certificates handy,
//we provide ours (see http://curl.haxx.se/docs/sslcerts.html).
if(curl_errno($ch) == 60){
curl_setopt($ch, CURLOPT_CAINFO, "../ca_bundle.crt");
curl_setopt($ch, CURLOPT_CAINFO, __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."ca_bundle.crt");
$result = curl_exec($ch);
}

Expand Down

0 comments on commit 6d4d7f5

Please sign in to comment.