HTTPS Error 521, Universal SSL Cloudflare

March 7, 2016 7.6k views
Apache Getting Started Security DigitalOcean Configuration Management

I have free Universal SSL with CloudFlare. I wanted to set up a permanent SSL redirect on my website.
I change A-name to IP my droplet on digitalocean and when i try to use https-protocol i get error: 521 (ssl handshake filed) and loop

I think, that is necessary to change standart settings in configuration apache2, but what to change and where?

Previously, I used shared hosting by godaddy and never encountered this problem. Please help me!

5 Answers

@KerchTorres, how did you solve the issue?

i have the same issue, please tell us how you solved this :(

I have the same issue as well. I have 2 servers with DO. With two sites on each that all have CloudFlare DNS/SSL. Today I updated one of the server, and both domains on this one started to get 525 ssl handshake failed. The two domains on the other “non-updated” server still worked fine.
Can’t fix it. I had to deactivate SSL for now. Any help welcome.

I had the same issue, I noticed that my SSL was on “Full”, but my server doesn’t support SSL, so I changed it to Flexible (e.g. USER <SSL> CF <PLAIN> SERVER)

If you require FULL SSL, you should make sure that your SSL works even without CF through

problem solved! Change SSL = full to Flexible

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!