Skip to content

Commit

Permalink
Use the system CA cert when available.
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz committed Apr 18, 2018
1 parent c819c21 commit 44f2c57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function __construct(array $config)

if (isset($config['certificate_verify'])) {
$this->certificateVerify = $config['certificate_verify'];
} elseif ($cert = ini_get('curl.cainfo')) {
$this->certificateVerify = $cert;
} else {
$this->certificateVerify = __DIR__ . '/../resources/cert.pem';
}
Expand Down

0 comments on commit 44f2c57

Please sign in to comment.