Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL error: (60) ... certificate not valid #13

Open
stefanocurnis opened this issue Mar 15, 2019 · 4 comments
Open

cURL error: (60) ... certificate not valid #13

stefanocurnis opened this issue Mar 15, 2019 · 4 comments

Comments

@stefanocurnis
Copy link

Hey guys. I suddenly get this in my IPN responses:

cURL error: [60] SSL certificate problem: unable to get local issuer certificate.

Anyone else?
I never seen it before. Probably outdated certificate file?
Thanks

@helderferrari2
Copy link

Same error here... any solution?

@ultrono
Copy link

ultrono commented Mar 12, 2020

@helderferrari2 @stefanocurnis Yep, have suddenly started to get this myself recently too. Nothing has changed on the server.

I resolved this by saving https://curl.haxx.se/ca/cacert.pem into the src/cert directory.

I then replaced https://github.com/sh0umik/Laravel5-PaypalIPN/blob/master/src/PaypalIPNListener.php#L106 with

dirname(__FILE__)."/cert/cacert.pem");

I'm unsure why this worked :/

Above works in the Sandbox and live environments.

@ultrono
Copy link

ultrono commented Mar 12, 2020

FYI the offical PayPal IPN examples on Github (see https://github.com/paypal/ipn-code-samples/blob/master/php/PaypalIPN.php) use the cacert.pem I mentioned above and differrent endpoints. IT may be wise to use that instead of this class.

@8ctopus
Copy link

8ctopus commented Feb 1, 2023

#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants