How to Get Free SSL on DigitalOcean
To get free SSL on DigitalOcean, run Certbot on a droplet, add your domain in App Platform, or let a load balancer create a Let's Encrypt certificate. DigitalOcean gives you infrastructure, not a control panel, so the route depends on which product hosts your site.
Free SSL on DigitalOcean droplets: Certbot
On a droplet running nginx or Apache, Certbot is the standard route. Connect over SSH, then:
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com
Certbot edits the server block, issues the certificate and installs a systemd timer for renewal. Since Certbot 4.0.0 it renews once less than a third of the lifetime is left, which is 30 days on a 90-day certificate, about 21 on a 64-day one and 15 on a 45-day one (Certbot docs). Make sure ports 80 and 443 are open in the droplet's firewall and any DigitalOcean Cloud Firewall attached to it. The full flow is in getting a free certificate with Certbot, and the droplet-specific walkthrough is in installing free SSL on a DigitalOcean droplet with Ubuntu.
Free SSL on DigitalOcean App Platform: automatic
DigitalOcean's App Platform provisions a certificate automatically for every custom domain you add, with nothing to install. Add the domain in the app's settings, point DNS as instructed, and the platform generates and issues the certificate itself (DigitalOcean docs). If issuance stalls, DNS is almost always the cause.
Load balancers
DigitalOcean load balancers can terminate TLS with a fully managed Let's Encrypt certificate that DigitalOcean creates and renews, but only if you manage the domain with DigitalOcean DNS (DigitalOcean docs). Otherwise use a certificate you already have. Terminating at the load balancer means traffic between the balancer and droplets travels over the private network; whether you encrypt that hop too depends on your threat model.
Point the web server at a manual certificate
If you issued a certificate without the Certbot plugin, reference it in your config. For nginx:
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/ex.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ex.com/privkey.pem;
Complete nginx and Apache examples are in installing free SSL on an nginx or Apache VPS.
Verify and monitor
Reload the server, open the site over HTTPS, and confirm the padlock. Then run the domain through our free SSL certificate checker to confirm the full chain is served. Certificates on droplets renew through Certbot's timer, but timers break after migrations or image rebuilds, so an expiry check with the free SSL expiration checker is cheap insurance. If renewal errors appear, fixing Certbot renewal errors covers the common causes.
Snapshots and rebuilds break renewals
A droplet snapshot restores the filesystem, including the Certbot timer, but the timer is only useful if it keeps running. If you rebuild a droplet from an image, restore a backup, or clone the server to a new IP, test renewal immediately with certbot renew --dry-run. The common failure after a clone is a certificate that renews on one server and not the other, leaving a stale certificate on the server that actually serves traffic.
Spaces, static sites and other products
For static files and other products, check DigitalOcean's current documentation for how each one handles certificates. For a static site where you want your own certificate and full control, a droplet with nginx is often simpler than bending an object storage product into shape.
Watch the firewall and the expiry
Two failures cover most broken DigitalOcean certificates: a firewall change that blocks port 80 and stops renewal, and a timer that was never verified after a rebuild. Check the first by opening the site over plain HTTP, and the second with our free SSL expiration checker, which reports the date the live server presents rather than the date in your notes.
Keep the certificate out of images
Do not bake certificates into a droplet image or a container build. Certificates expire, and an image that carries one will hand out an expired certificate on every new server built from it.
Related reading: installing free SSL on a VPS and installing free SSL on Docker.
Frequently Asked Questions
Do I need Certbot for free SSL on App Platform?
No. App Platform generates and issues the certificate when you add a domain to your app (DigitalOcean docs).
Can a DigitalOcean load balancer create a free certificate?
Yes, a managed Let's Encrypt certificate, if you manage the domain with DigitalOcean DNS (DigitalOcean docs).
Why did my droplet certificate stop renewing after a rebuild?
A rebuilt or cloned droplet may not have the renewal timer running, or a firewall may block port 80. Run sudo certbot renew --dry-run right after any rebuild.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.