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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.