data
4 years ago
lib
2 years ago
.coveralls.github-actions.yml
4 years ago
.php-cs-fixer.php
2 years ago
LICENSE
6 years ago
Makefile
2 years ago
VERSION
2 years ago
init.php
2 years ago
phpdoc.dist.xml
4 years ago
phpstan-baseline.neon
2 years ago
phpstan.neon.dist
2 years ago
update_certs.php
4 years ago
update_certs.php
20 lines
| 1 | #!/usr/bin/env php |
| 2 | <?php |
| 3 | \chdir(__DIR__); |
| 4 | |
| 5 | \set_time_limit(0); // unlimited max execution time |
| 6 | |
| 7 | $fp = \fopen(__DIR__ . '/data/ca-certificates.crt', 'w+b'); |
| 8 | |
| 9 | $options = [ |
| 10 | \CURLOPT_FILE => $fp, |
| 11 | \CURLOPT_TIMEOUT => 3600, |
| 12 | \CURLOPT_URL => 'https://curl.se/ca/cacert.pem', |
| 13 | ]; |
| 14 | |
| 15 | $ch = \curl_init(); |
| 16 | \curl_setopt_array($ch, $options); |
| 17 | \curl_exec($ch); |
| 18 | \curl_close($ch); |
| 19 | \fclose($fp); |
| 20 |