How to setup SSL certificate via Cloudflare on DigitalOcean | Wordpress platform

Posted November 21, 2016 20.2k views

Hello guys,

I would like to setup ssl certificate running through cloudflare on my digitialocean droplet.
I’m using it on my wordpress CMS.

Is there any step by step guide for this purpose?

Thank you

1 comment

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.

Submit an Answer
6 answers

Digital Ocean needs to update their network to be compatible with Cloudflare Universal SSL feature.

For time being DO clients should use flexible SSL setting. It means data transfer between DO server and CF is not encrypted anymore, but until DO fixes their network… this workaround will do.

Once you set up your site with CloudFlare, it should have CloudFlare SSL Cert running.
You can learn more about how does CloudFlare One-Click SSL works at their site.

In case you want to use your own cert, that requires more work. For that, start with How do I add SSL to my site?.

tnx xMudrill, so I follow CloudFlare One-Click SSL and that should do the job - I don’t need to additionally setup something on my droplet at digitalocean hosting?

  • That does depends on option you select. If you go with Flexible SSL on Cloud-Flare, you don’t need to setup SSL on server.
    If you go with Full/Full Strict, you need to setup SSL on server.

OK, thank you xMudrll - I’ll then just go with Flexible SSL on Cloud-Flare.

Thank’s fo advices, and clearing up some doubts.



I installed WordPress on my Ubuntu droplet and activated Cloudflare SSL.

Now when I am trying to go to the site, the site is, as usual, redirecting to https version but is returning error 521. How do I rectify this error?


Helloi, @Stepic i made a bash script for easy setup WordPress on digital ocean droplets with Cloudflare FULL SSL support, maybe it’s was very useful and you can fastly deploy and configure your digital ocean droplets.

How To Install WordPress with LEMP on Ubuntu 16.04

This LEMP stack is that fastest way to start running WordPress on your server. Using Nginx, PHP 7.0, MariaDb. Use only on Ubuntu-16.04.


  • Nginx (updated)
  • PHP 7.0
  • PHP-fpm
  • Mariadb (updated)
  • Wordpress (updated)

*Do it on Fresh DigitalOcean Droplet *

Here is the bash script.

wget -qO wp && sudo bash wp

source :-