# give/4.16.1/vendor/stripe/stripe-php/update_certs.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.1. 20 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.1/code/vendor/stripe/stripe-php/update_certs.php
- Raw: https://pluginprobe.com/plugins/give/4.16.1/raw/vendor/stripe/stripe-php/update_certs.php
- Modified: 2021-09-27T12:30:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.1/code/vendor/stripe/stripe-php/update_certs.php#L10-L20`.

```php
#!/usr/bin/env php
<?php
\chdir(__DIR__);

\set_time_limit(0); // unlimited max execution time

$fp = \fopen(__DIR__ . '/data/ca-certificates.crt', 'w+b');

$options = [
    \CURLOPT_FILE => $fp,
    \CURLOPT_TIMEOUT => 3600,
    \CURLOPT_URL => 'https://curl.se/ca/cacert.pem',
];

$ch = \curl_init();
\curl_setopt_array($ch, $options);
\curl_exec($ch);
\curl_close($ch);
\fclose($fp);

```
