Recurring error with the ca-certificates.crt file
One of the 3 CiviCRM instances I manage that use this extension keeps having an error:
Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com. (Network error [errno 77]: error setting certificate verify locations: CAfile: /var/www/live/web/wp-content/uploads/civicrm/ext/com.drastikbydesign.stripe/vendor/stripe/stripe-php/data/ca-certificates.crt CApath: /etc/ssl/certs)
This happens randomly. After this error happens, the ca-certificates.crt file no longer has certificates and becomes:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://curl.se/ca/cacert.pem">here</a>.</p>
<hr>
<address>Apache Server at curl.haxx.se Port 80</address>
</body></html>
I am not a coder but I found the found the /vendor/stripe/stripe-php/update_certs.php file and I see that is has a URL that is no longer used https://curl.haxx.se/ca/cacert.pem. I believe, according to this page https://curl.se/docs/caextract.html the URL should be https://curl.se/ca/cacert.pem
I don't know why this problem seems to only be happening to this one CiviCRM instance but perhaps this URL should be updated.