HTTPS Error 521, Universal SSL Cloudflare

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

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!

2 comments
4 Answers

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 https://www.ssllabs.com/ssltest/

Have another answer? Share your knowledge.