Skip to content
Log In Sign Up info@muvcloud.com

What Error 526 Means

In the Full (strict) SSL mode, the Cloudflare edge connects to your origin over HTTPS for HTTPS requests and checks its certificate the way a browser would: it must not be expired or revoked, must come from a trusted certificate authority (or Cloudflare's Origin CA), must list the host name, and must be served with its intermediate certificates. Error 526 means that check failed. The connection and the handshake worked; if the handshake itself fails, the edge shows error 525 instead. The plain Full mode does not validate the certificate, which is why a 526 appears only under Full (strict).

If You See It on Someone Else's Site

  • Reload later: the problem is between the CDN and the site's server, not in your browser.
  • Leave your settings alone: clearing the cache or changing the clock does not help.
  • Tell the site owner the time and the Ray ID shown on the error page.

Look at the Origin's Certificate

Connect to the server's own IP, skipping the CDN, and print the certificate details:

openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null 2>/dev/null \
  | openssl x509 -noout -subject -issuer -dates -ext subjectAltName

Read three things: the notAfter date, the issuer, and the list of names in the subject alternative name. The table maps what you see to the fix:

FindingCauseFix
Date in the pastExpiredRenew
Issuer same as subjectSelf-signedReplace
Name not listedMismatchReissue

Run the command from a machine your firewall allows to reach port 443.

An Expired Certificate

Let's Encrypt certificates are short-lived, so a renewal that stopped working leads to a 526 within weeks. Check the certificates and test renewal:

sudo certbot certificates
sudo certbot renew --dry-run
systemctl list-timers | grep -i certbot

The first command shows each certificate's expiry date, the second runs a renewal test without saving anything, and the third shows whether the renewal timer is active. If the test fails, the reason is in /var/log/letsencrypt/letsencrypt.log. A renewed certificate is used only after the web server reloads. When certbot installed the certificate with its Nginx or Apache plugin, it reloads the server after renewal; with the webroot or standalone method, add a hook:

sudo certbot renew --deploy-hook "systemctl reload nginx"

A Self-Signed Certificate

A fresh web server often starts with a placeholder certificate, such as the snakeoil certificate on Debian and Ubuntu or the self-signed localhost.crt that mod_ssl creates on AlmaLinux and Rocky Linux. Browsers and the edge do not trust it. Replace it with a Let's Encrypt certificate or a Cloudflare Origin CA certificate. Do not switch the SSL mode down to Full to hide the error: the edge would then accept any certificate, including one from someone else.

A Host Name Mismatch

The certificate must list every proxied name. A certificate for example.com does not cover www.example.com or api.example.com. Add the missing names with certbot:

sudo certbot --nginx -d example.com -d www.example.com

Also check that each name reaches the right server block. A request for a name with no matching server_name gets the default block's certificate, which usually belongs to another site.

A Cloudflare Origin CA Certificate

In the Cloudflare dashboard, on the Origin Server page under SSL/TLS, you can create a certificate that only Cloudflare trusts. Save the certificate and the private key on the server, point ssl_certificate and ssl_certificate_key at them, run sudo nginx -t, and reload. It passes Full (strict) as long as the record stays proxied; visitors who reach the server directly see a warning, because browsers do not trust that issuer.

Confirm the Fix

curl -I https://example.com/

Expect 200 and a cf-ray header, which shows the response came through the CDN. If the page now loops between HTTP and HTTPS, see ERR_TOO_MANY_REDIRECTS; for other edge errors, see error 522.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations