Question

How to set up SSL / HTTPS encryption between origin server (droplet) and cloudflare?

I am trying to find out how to set up SSL / HTTPS encryption between my origin server (droplet) and cloudflare.

I already managed to set up HTTPS encryption between cloudflare and visitors, just am unsure how to set up encryption between my origin server and cloudflare.

Can anyone advise?

Thanks!


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.

alexdo
Site Moderator
Site Moderator badge
July 5, 2024

Heya, @michaeltjeng

You can setup the domain name with CloudFlare and use the Full Strict SSL/TLS option. On your droplet you can use certbot to issue and install an SSL Certificate to complete the whole process. Have in mind that if there is DNS change this can take up few good hours in order to take effect.

Regards

KFSys
Site Moderator
Site Moderator badge
July 2, 2024

Heya,

You can configure an Let’s Encrypt SSL on your Droplet. That way you can get the full encruption option in Cloudflare.

You can just run the certbot command and it will guide you through the steps you need to take.

If you need to check which WebService you are using - Apache/Nginx you can always run the following command

netstat -tulpen | grep 80
Bobby Iliev
Site Moderator
Site Moderator badge
July 2, 2024

Hi there,

What you could do here is to setup a free Let’s Encrypt SSL on your Droplet itself. Depending on the webserver that you have you can follow the steps here:

The certbot CLI will setup the SSL installation for you and also automate the renewal process.

That way you will then be able to enable the full encruption option in Cloudflare:

Let me know how it goes!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel