How do I install an SSL Certificate on a Droplet?

Validated on 29 Mar 2024 • Last edited on 17 Apr 2025

SSL certificates increase security for your Droplet and your users by enabling encrypted connections to your server. You can purchase certificates through a commercial SSL certificate authority (CA) or use a free, open source CA like Let’s Encrypt.

Installing Let’s Encrypt SSL Certificates

Let’s Encrypt SSL certificates are free, remain valid for three months, and support automatic renewal.

To install Let’s Encrypt certificates, you need to create A records pointing your domain to your Droplet’s IP address. Then you can use certbot to automatically configure SSL on your web server.

How To Secure Nginx with Let's Encrypt on Ubuntu 22.04

This tutorial uses Certbot to obtain and install an SSL certificate for Nginx on Ubuntu 22.04 and set up automatic renewal.

digitalocean.com/community
How To Secure Apache with Let's Encrypt on Ubuntu 22.04

This tutorial uses Certbot to obtain and install an SSL certificate for Apache on Ubuntu 22.04 and set up automatic renewal.

digitalocean.com/community

Installing Commercial SSL Certificates

Commercial SSL certificates usually cost money and remain valid for one year or longer. After you obtain a commercial SSL certificate, you can install it on your web server by modifying its configuration file.

How To Install an SSL Certificate from a Commercial Certificate Authority

This tutorial will show you how to acquire and install an SSL certificate from a trusted, commercial Certificate Authority (CA).

digitalocean.com/community
Can I have more than one domain on the same Droplet?

Yes, you can point an unlimited number of domains to a single Droplet, and you can serve multiple websites from a single Droplet.

How can I renew Let's Encrypt certificates?

You can renew your certificate manually using Certbot.

I can't delete my domain because of an associated Let's Encrypt certificate

Delete the Let’s Encrypt certificate associated with the domain in your account’s Settings section.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.