Error 525: SSL Handshake Failed
Error 525 is the Cloudflare message “SSL handshake failed”. It appears when Cloudflare and the origin web server cannot agree on a secure connection. This page explains what it means, what usually causes it and what you can do about it, as a visitor or as the owner of the site.
- Error code
- 525
- Cloudflare message
- SSL handshake failed
- HTTP status
- 525
- Who can fix it
- The site owner
- Official reference
- Cloudflare documentation for error 525
What error 525 means
Cloudflare tried to start an encrypted connection to the server and the handshake failed. It only happens when the SSL/TLS mode of the site is Full or Full (strict).
Cloudflare sits between the visitor and the web server of the site, which is called the origin. When something fails on that path, Cloudflare shows its own error page instead of the site. So error 525 comes from Cloudflare's network, not from your browser or your device.
What causes error 525
- No valid SSL certificate is installed on the origin server.
- Port 443 is closed on the server or in its firewall.
- The server does not support SNI.
- Cloudflare and the server share no common cipher suite.
More than one of these can be true at the same time. Therefore start with the most recent change, because an error that appears right after a deployment, a DNS edit or a new firewall rule usually comes from that change.
How to fix error 525 as a visitor
This is a server setting, so there is nothing to fix in your browser.
In any case, reload the page once and try again a few minutes later. If the error stays, tell the site owner and include the Ray ID shown at the bottom of the error page, because it lets them find your exact request.
How to fix error 525 as the site owner
- Install a valid certificate on the server, for example a free Cloudflare Origin CA certificate.
- Open port 443 and make sure the web server listens on it.
- Check that the server supports SNI and modern cipher suites.
- Read the SSL error log of the server for the time of the failure.
If none of these steps helps, collect the Ray ID, the time of the error and the affected URL. Then send them to your hosting provider first, since many causes sit on the server side. Cloudflare Support only works with the owner of the domain.
Where to find the details
Every Cloudflare error page shows a Ray ID, which is a unique identifier for that single request. In the Cloudflare dashboard, the site owner can search for it in the security events or in the logs. As a result, a vague report turns into one exact request with its time, location and rule.
For that reason, a screenshot of the whole error page is the most useful thing a visitor can send. It contains the code, the Ray ID, the time and the Cloudflare location that answered.
On the server side, compare the time of the error with the web server and firewall logs. Also check any load balancer, proxy or security plugin that sits between Cloudflare and the application, because the cause is often there.
How error 525 differs from other Cloudflare errors
Cloudflare uses two families of codes. Codes from 520 to 530 mean that Cloudflare reached out to the origin server and something went wrong on the way or in the answer. Codes from 1000 upwards mean that Cloudflare itself stopped the request, usually because of a DNS setting or a security rule.
Standard codes such as 500, 502, 503 and 504 are different again, because they can also come straight from the origin server. If the page carries Cloudflare branding and a Ray ID, Cloudflare produced it. Otherwise the origin did.
The related codes below are the ones most often confused with error 525, so check them if the description here does not match what you see.
Does error 525 affect search rankings?
A short outage rarely does. Search engines retry a page that answers with an error, and they keep the old copy in the meantime.
However, an error that lasts for days is a different matter. Crawlers slow down, and pages can drop out of the index after repeated failures. Therefore fix a lasting error quickly, and check the crawl report in your search console afterwards.
Blocks aimed at one visitor, such as a rate limit or a firewall rule, do not change rankings unless they also catch the crawlers. So make sure that your security rules allow verified search bots.
When to ask for help
Many causes take a few minutes to fix once you know where to look. Others need access to the server, the firewall and the Cloudflare account at the same time, which is hard when different people manage each part.
If the error keeps coming back, the cause is often capacity, a fragile server setup or a rule that is too broad. In that case a review of the whole path, from DNS to the application, saves more time than another quick patch.
The official description of this error is in the Cloudflare documentation, which lists every known cause in technical detail. This site is independent and is not affiliated with Cloudflare.
Does your site keep showing Cloudflare errors?
We build fast, secure websites hosted on Cloudflare. Tell us what you see, and we will quote for finding and fixing the cause.
Talk to us about your siteFrequently Asked Questions
Is error 525 a problem with my computer or internet connection?
Usually not. The error page is produced by Cloudflare after your request has already reached its network. So your connection works, and the problem lies with the site, its server or its security rules.
Who has to fix error 525?
The owner of the website or their hosting provider. A visitor cannot fix it, but a report with the Ray ID helps the owner find the cause faster.
How long does error 525 last?
It lasts until the cause is removed. Some cases clear in seconds, for example when a server restarts, while a wrong setting stays until someone corrects it.
Will clearing my cache or cookies fix error 525?
Rarely. The error is created on Cloudflare's side for each request, so old browser data is seldom the cause. However, a hard reload is quick and harmless, so it is worth one try.
What is the Ray ID on the error 525 page?
It is a unique identifier that Cloudflare gives to every request. The site owner can search for it in the Cloudflare dashboard to see exactly what happened to your request.
More questions about error 525
Is Cloudflare down when I see this error?
Almost never. The error page itself is served by Cloudflare, which shows that its network is answering. Still, you can check the Cloudflare status page if many unrelated sites fail at once.
Can Cloudflare Support fix it for me?
Only if you own the domain. Cloudflare Support works with the account owner and cannot change another customer's settings. Visitors should contact the website instead.
Does a VPN or proxy cause this error?
It can for errors that block a visitor, because many sites restrict addresses used by VPNs and data centres. For errors between Cloudflare and the origin server, a VPN makes no difference.
Which HTTP status code does it return?
Cloudflare returns this error with HTTP status 525. Monitoring tools and logs often record only that status, so search for it when you look for this error.
Can I show my own page instead of the Cloudflare error page?
Yes, if you own the site. Cloudflare lets the owner replace its default error pages with custom ones on plans that include that feature. The cause of the error stays the same, though.