]>
Commit | Line | Data |
---|---|---|
27017ff1 ER |
1 | --- ca-bundle-1.1.3/src/CaBundle.php~ 2018-10-18 09:09:13.000000000 +0300 |
2 | +++ ca-bundle-1.1.3/src/CaBundle.php 2018-11-05 01:38:02.282995447 +0200 | |
3 | @@ -130,24 +130,7 @@ | |
467779cc ER |
4 | */ |
5 | public static function getBundledCaBundlePath() | |
6 | { | |
27017ff1 ER |
7 | - $caBundleFile = __DIR__.'/../res/cacert.pem'; |
8 | - | |
9 | - // cURL does not understand 'phar://' paths | |
10 | - // see https://github.com/composer/ca-bundle/issues/10 | |
11 | - if (0 === strpos($caBundleFile, 'phar://')) { | |
12 | - file_put_contents( | |
13 | - $tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'), | |
14 | - file_get_contents($caBundleFile) | |
15 | - ); | |
16 | - | |
17 | - register_shutdown_function(function() use ($tempCaBundleFile) { | |
18 | - @unlink($tempCaBundleFile); | |
19 | - }); | |
20 | - | |
21 | - $caBundleFile = $tempCaBundleFile; | |
22 | - } | |
23 | - | |
24 | - return $caBundleFile; | |
467779cc ER |
25 | + return '/etc/pki/tls/certs/ca-bundle.crt'; |
26 | } | |
27 | ||
28 | /** |