| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,19 @@ |
| 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); |