configure apache to use let's encrypt ssl

My site is using a certificate I created a while back, something I hardly remember doing. It’s not from a cert authority so will not be considered secure.

I recently discovered the option to use let’s encrypt certificates in Settings->Security (Certificates for Load Balancers and Spaces). I’m not 100% sure I can use this though, as I don’t know what the load balancers and spaces are. But I managed to create a certificate but I do not know how to apply it.

my virtual host configuration contains following lines SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key

I’m pretty sure I configured this and that the .crt showing on my site is the one in this folder. I’ve tried removing these lines, but then my site no longer works as no HTTPS is available for it.

I was wondering if I somehow can add a reference to the newly created let’s encrypt certificate, but I could not find it on my server.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @marcgfx,

DigitalOcean has written a pretty good tutorial on how to secure Apache with let’s encrypt.

You can check out the tutorial here;

In this guide, you’ll use Certbot to obtain a free SSL certificate for Apache on Ubuntu 20.04, and make sure this certificate is set up to renew automatically.