Skip to content

Commit 349cf4f

Browse files
committed
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
1 parent 3433168 commit 349cf4f

File tree

2 files changed

+5135
-1
lines changed

2 files changed

+5135
-1
lines changed

CloudControl/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ public function delete($resource) {
14421442
private function _request($resource, $method=\HTTP_Request2::METHOD_GET, $data=array(), $headers=array()) {
14431443
$url = $this->_url . $resource;
14441444
$request = new \HTTP_Request2($url);
1445-
$request->setConfig('ssl_verify_peer', API::SSL_VERIFY_PEER);
1445+
$request->setConfig(array('ssl_verify_peer'=> API::SSL_VERIFY_PEER, 'ssl_cafile' => realpath(dirname(__FILE__)).'/cacert.pem'));
14461446

14471447
$methods = array(
14481448
'options' => \HTTP_Request2::METHOD_OPTIONS,

0 commit comments

Comments
 (0)