Question

How can I create a SSL for my domain using Snaps and Caddy but fails due to floating IP.

I have an installation of Rocket.Chat that was installed using Snaps. I am following the instructions to configure a SSL certificate for my domain using Snaps and Caddy. It fails with an error stating that the IP addresses do not match. I understand that this is due to using a floating IP.

Can anyone advise how I can configure a SSL certificate on a snaps installation using a floating ip?

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.

Lalitha
DigitalOcean Employee
DigitalOcean Employee badge
March 20, 2021
Accepted Answer

Hello @graemeStarfish ,

Caddy makes use of Let’s Encrypt to automatically provide you SSL protection for your communications. As long as your domain name is pointed to the Floating IP it will work fine. Make sure the DNS records are set up to resolve the domain name to the Floating IP. The CertBot add validation works by adding a temporary file inside your document root directory. As long as their API is able to access the temporary file, the validation will work.

You can follow the steps on how to do that here:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Hope this helps!

Cheers, Lalitha

Try DigitalOcean for free

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

Sign up

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