Laravel5-PaypalIPN icon indicating copy to clipboard operation
Laravel5-PaypalIPN copied to clipboard

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

Open stefanocurnis opened this issue 5 years ago • 4 comments

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

stefanocurnis avatar Mar 15 '19 00:03 stefanocurnis

Same error here... any solution?

helderferrari2 avatar Feb 26 '20 19:02 helderferrari2

@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 avatar Mar 12 '20 23:03 ultrono

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.

ultrono avatar Mar 12 '20 23:03 ultrono

#16

8ctopus avatar Feb 01 '23 07:02 8ctopus