Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add cacert.pem file
 - The cacert.pem file used by HTTP_Request2 does not verify the cloudcontrolled.com domain
 - cacert.pem taken from https://github.com/certifi/python-certifi/tree/ae3ca7b3d7451a28bb340acf7bb2fd69574fbc3b/certifi
  • Loading branch information
TooAngel committed Jul 14, 2014
commit 349cf4f92ecc958dd0d23e7b313f97dc21f62284
2 changes: 1 addition & 1 deletion CloudControl/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ public function delete($resource) {
private function _request($resource, $method=\HTTP_Request2::METHOD_GET, $data=array(), $headers=array()) {
$url = $this->_url . $resource;
$request = new \HTTP_Request2($url);
$request->setConfig('ssl_verify_peer', API::SSL_VERIFY_PEER);
$request->setConfig(array('ssl_verify_peer'=> API::SSL_VERIFY_PEER, 'ssl_cafile' => realpath(dirname(__FILE__)).'/cacert.pem'));

$methods = array(
'options' => \HTTP_Request2::METHOD_OPTIONS,
Expand Down
Loading