The SSL/TLS tab in the dashboard states for the Full mode:
Full SSL: Your origin supports HTTPS, but the certificate installed does not match your domain or is self-signed. Cloudflare will connect to your origin over HTTPS, but will not validate the certificate.
From what we observe in our Worker for CDN Finder, Cloudflare does validate the origin cert.
Is there a way to have the Worker not validate the cert for subrequests?
Ideally, this is a Fetch request property.
I get these 525 responses periodically as well. Would love to know how to relax the ssl checking for outgoing fetch calls within workers to other hosts on the internet that may never change their settings.
Just wanted to say it in case some weren’t aware yet, but error 525 is pretty much a catch-all error for all kinds of possible issues that prevent making a successful SSL connection between Cloudflare and your origin server.
You can for example also get the error if your origin does not (temporarily) accept any SSL connections or block them (this is something you might have noticed if you’re making use of Vercel as hosting provider).
525 does not necessarily mean a certificate issue.
That’s precisely it. A 525 is not a certificate issue.
Also, all that talk about disabling the verification is rather concerning, because the verification is there for a reason and disabling it essentially undoes SSL altogether.
Yes, the particular use case mentioned by @aaronpeters.nl might be an exception, but in general people appear to be way too comfortable breaking encryption. It’s not like we don’t already have enough broken security because of Cloudflare.
So, unless one has such a specific use case one really better fixes their setups instead of relaxing SSL verification.
So it sounds like 525 is more transitory then? Would you think it’s typically something that could be retried inline as part of the same worker request?
I’ll put a simple retry fallback for these and see if that helps, but it would be nice to know if it’s something we can minimize in general.