data
6 years ago
lib
6 years ago
.editorconfig
6 years ago
.gitignore
6 years ago
CHANGELOG.md
6 years ago
LICENSE
6 years ago
README.md
6 years ago
VERSION
6 years ago
build.php
6 years ago
composer.json
6 years ago
init.php
6 years ago
update_certs.php
6 years ago
update_certs.php
20 lines
| 1 | #!/usr/bin/env php |
| 2 | <?php |
| 3 | chdir(dirname(__FILE__)); |
| 4 | |
| 5 | set_time_limit(0); // unlimited max execution time |
| 6 | |
| 7 | $fp = fopen(dirname(__FILE__) . '/data/ca-certificates.crt', 'w+'); |
| 8 | |
| 9 | $options = array( |
| 10 | CURLOPT_FILE => $fp, |
| 11 | CURLOPT_TIMEOUT => 3600, |
| 12 | CURLOPT_URL => 'https://curl.haxx.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 |