Question

HTTPS Error 521, Universal SSL Cloudflare

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!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Just adding a new answer here: when you by pass the https request on the node balancer, add the origin certificate to the load balancer, and make sure it’s selected. That way, you can still use strict CF connections.

Hope this helps.

problem solved! Change SSL = full to Flexible

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/