Cloudflare Error 526 occurs when the Cloudflare edge server cannot establish a secure connection with your origin server because the SSL certificate on the origin server is invalid. This error affects customers using Cloudflare to manage their DNS and security for a website.
Important: This error specifically indicates a problem with the certificate hosted on your origin server (the server where your website files are stored), not the certificate provided by Cloudflare.
Before you begin
You will need:
Access to your Cloudflare account.
Access to your origin server's management panel or configuration files.
The ability to verify the status of the SSL certificate on your origin server.
Check the origin server certificate status
The most common cause of a 526 error is an expired or improperly configured SSL certificate on your origin server.
Identify the domain or subdomain experiencing the error.
Access your origin server's management panel or use a command-line tool to check the certificate's expiration date.
Verify that the certificate is currently valid and has not expired.
Ensure the certificate includes the correct domain name (Common Name) and any necessary Subject Alternative Names (SANs).
Note: If you are using a free certificate (such as Let's Encrypt), ensure the automated renewal process is functioning correctly.
Verify the certificate chain
A 526 error can also occur if the origin server provides an incomplete certificate chain.
Use an external SSL checker tool or a command-line tool like
opensslto test the connection directly to your origin server's IP address.Check if the server provides the full intermediate certificate chain.
If the chain is incomplete, update your server configuration to include the full bundle.
Verify the Cloudflare SSL/TLS settings
Ensure your Cloudflare settings are compatible with the certificate you have installed on your origin.
Log in to your Cloudflare account.
Select the affected website.
Navigate to SSL/TLS > Overview.
Check your encryption mode:
If you are using Full (Strict), Cloudflare requires a valid, non-expired certificate from a trusted CA on your origin server.
If you are using Full, Cloudflare will accept a self-signed certificate, but it must still be present.
If you are using a self-signed certificate and cannot provide a valid CA-signed certificate immediately, you may need to switch to Full mode to restore service while you update your certificate.
Confirm the result
The website loads successfully without the "Error 526" message.
The browser shows a valid padlock icon (if the certificate is public-facing).
The connection between Cloudflare and your origin server is successfully established.
If the error persists after updating the certificate
If you have updated the certificate on your server but still see a 526 error:
Purge Cloudflare Cache: Go to Caching > Configuration and select Purge Everything.
Check for Proxy Issues: Ensure that your origin server is not blocking Cloudflare's IP addresses.
Verify DNS: Ensure that the A or CNAME records in your Cloudflare DNS settings point to the correct origin IP address.
Limitations
This procedure does not resolve issues caused by a firewall blocking Cloudflare's IP ranges.
This procedure does not resolve issues where the certificate is valid but does not match the domain name being requested.
This does not change the validity of the certificate; it only addresses the connection between Cloudflare and your server.
