HTTPS Received fatal alert: handshake_failure problem


#1

Hello
I run a magento ecommerce site, and I am using Cloudflare with it.
We use a payment gateway to do payments through a provider, so when users place an order, the site forwards to the gateway, the payment is done, and after that can get back to my site, this is a common way.
My problem, is when the credit card gateway sends a callback to my site, it gets an error if using Cloudflare with CDN (orange cloud). If I deactivate CDN, (grey cloud) then it works perfectly, but then I lose most of the benfist of using Cloudflare.
If I set up the gateway to send its response through unsafe http then it works without a problem but I configure to be sent through https then there is a HTTP 500 error, and my site never receives the payment confirmation. The gateway gets “Received fatal alert: handshake_failure” . If I deactivate cache (grey cloud), no problem, but as soon as I activate I have this error.
I tried to create a page rule for that callabak link , that disables security, Cache Level: Bypass, Disable performance…" but the “Received fatal alert: handshake_failure” still happens.
There is something with the https comunication between the credit card payment gateway and Cloudflare, that produces this error.

Any aideas, about how to solve this?
Is there a way to see log or debug the communication between the gateway and cloudflare?

Thanks so much


#2

Worldpay by any chance?


#3

No, Redsys, the main gateway at Spain.
But if request the link from https://httpstatus.io/ , or if create an HTML form and I do it myself, it works.
It just happens that error with Cloudflare.
What cold be wrong?


#4

Maybe the same issue as at WooCommerce Worldpay handshake_failure Not Completing Order. You should clarify that with your payment provider.


#5

Is there a way to check the communication between the gateway and Cloudflare, where can I see logs at Cloudflare? This way, I could see why the failure is happening

Thanks