After following a couple half out of date guides on the internet, I’ve finally been able to create a little green padlock next to my URL in Chrome. Cloudflare provides a free shared certificate that isn’t too difficult to set up provided you have the correct list of steps in front of you.

Step 1 - Fire up a digitalocean droplet with nginx

I am assuming you have a digitalocean droplet set up with Nginx. If not, it’s pretty easy to create a new one with the one-click app for LEMP. You probably don’t need the MySql or PHP, but I think it’s easier to uninstall those than install nginx from scratch, so I just let digitalocean do all the work.

Step 2 - Create an account with CloudFlare

Just visit CloudFlare and create an account if you don’t already have one.

Step 3 - Add your digital ocean site to CloudFlare