Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Stripe Stripe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 83
    • Issues 83
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • StripeStripe
  • Issues
  • #358
Closed
Open
Issue created Feb 13, 2022 by Daniel_Strum@Daniel_Strum

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.

Assignee
Assign to
Time tracking