Troubleshooting
HTTPS does not work with Cloudflare enabled (ERR_SSL_VERSION_OR_CIPHER_MISMATCH, 525, 526)
All our hosting plans have free SSL certificates that are installed and renewed automatically. But when you enable Cloudflare, the certificate visitors see is the one Cloudflare generates, not ours. If that certificate fails, the website stops working over HTTPS.
With Cloudflare there are two connections: from the visitor to Cloudflare and from Cloudflare to our server. The error you see tells you which one is failing.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH or certificate not recognised
This is the typical error right after enabling Cloudflare (in Firefox it appears as SSL_ERROR_NO_CYPHER_OVERLAP). It means Cloudflare does not yet have a valid certificate for that domain or subdomain.
- In the Cloudflare dashboard, open your domain and go to SSL/TLS > Edge Certificates.
- Find the Universal certificate and look at its status:
- Pending (or anything other than Active): Cloudflare is still issuing it. It can take anywhere from 15 minutes to 24 hours. If you cannot wait, pause Cloudflare in the meantime: on the domain's Overview page, click Pause Cloudflare on Site. The website will work with our certificate and, when Cloudflare's is Active, you enable it again.
- Active: the certificate is fine; carry on with step 3.
- In DNS > Records, check that the record for the name that fails (
dominio.com,www…) has its Proxy status set to Proxied (orange cloud). If it is set to DNS only, Cloudflare's certificate is not used for that name. - If the name that fails is a second-level subdomain, such as
tienda.eu.dominio.com, the free certificate does not cover it: it only coversdominio.comand first-level subdomains (tienda.dominio.com). Set that record to DNS only or use a paid Cloudflare advanced certificate.
If after 24 hours the certificate is still not active, in SSL/TLS > Edge Certificates disable Universal SSL and enable it again so that Cloudflare issues it again. Meanwhile the website will not work over HTTPS, so pause Cloudflare first. More details in Cloudflare's guide to this error.
Error 525: SSL handshake failed
Cloudflare could not establish the secure connection with our server. This usually happens when the domain does not have a certificate installed on the hosting.
In cPanel, go to Security > SSL/TLS Status and click Run AutoSSL. Then check that the domain and its www appear with a valid certificate. Once the certificate is installed, the error goes away. If AutoSSL fails, the reason usually appears on that same screen.
Error 526: Invalid SSL certificate
Cloudflare is in Full (strict) mode and the hosting certificate is not valid for that name: it has expired, does not include the subdomain or is self-signed. The solution is the same as for 525: run Run AutoSSL in SSL/TLS Status for the domain and its subdomains.
Which encryption mode to use
In SSL/TLS > Overview, use Full (strict). Our free certificates are valid, so Cloudflare can check them.
Do not use Flexible: in that mode Cloudflare connects to our server unencrypted and, if the website redirects to HTTPS (which is usual), it causes a redirect loop (ERR_TOO_MANY_REDIRECTS).
For the rest of Cloudflare's settings, see advanced Cloudflare management from its website.
You may also find useful
- How to fix the cURL error 60 SSL certificate problem in WordPress How to diagnose and fix the WordPress cURL error 60 without disabling SSL certificate verification.
- Orders not confirmed after a Redsys payment Avoid unconfirmed orders with Redsys by checking the HTTPS callback and validating signature, amount...
- "An error occurred while sending the message" in the PrestaShop contact form Diagnose the contact form rejection and fix an old override only when it does not send contactform's...
- .eml files blocked by mail servers Why the server rejects an email with an .eml attachment and how to forward it so that it arrives: no...
Something wrong or out of date? Tell us and we will review it.