Question

Lets encrypt for Saas

Hello guys.

We are developing a saas and we need our customers to be able to install SSL (lets encrypt) automatically from our saas dashboard. But from what I’ve seen, I always need to move the virtual host to enable the domains by SSL? Because just pointing the IP and creating the certificate by the Digital Ocean API it gives an error. Do you know if it is possible to just use the Digital Ocean API to create and install the. https on domains without messing with apache? Thanks


Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 3, 2022

Hi there,

Alternatively, rather than creating an Apache virtual host, you could use the DNS verification process as described here:

https://www.digitalocean.com/community/tutorials/how-to-acquire-a-let-s-encrypt-certificate-using-dns-validation-with-certbot-dns-digitalocean-on-ubuntu-20-04

Another approach that I’ve used is to obtain certificates via Cloudflare, that way you would not have to install the certificate on the server itself and Cloudflare takes care of it for you. In Cloudflare, you just need to set the certificate to “flexible” in order for it to work.

Hope that this helps!

Best,

Bobby