diff options
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Http.php b/core/Http.php index b3706b2b82..4377ebac7a 100644 --- a/core/Http.php +++ b/core/Http.php @@ -8,6 +8,7 @@ */ namespace Piwik; +use Composer\CaBundle\CaBundle; use Exception; /** @@ -912,7 +913,7 @@ class Http if (!empty($general['custom_cacert_pem'])) { $cacertPath = $general['custom_cacert_pem']; } else { - $cacertPath = PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem'; + $cacertPath = CaBundle::getBundledCaBundlePath(); } @curl_setopt($ch, CURLOPT_CAINFO, $cacertPath); } |