# How do you install a free SSL certificate on a VPS?

> How to install a free SSL certificate on a VPS with certbot and Let's Encrypt: 90-day certificates, nginx setup and auto-renewal.

- URL: https://jadekvm.com/guides/how-to-install-a-free-ssl-certificate-on-a-vps/
- Last updated: 2026-11-16
- Publisher: JadeKVM (https://jadekvm.com)

This is how to install a free SSL certificate on a VPS with certbot and nginx, on Debian 13 or Ubuntu 24.04, with renewal on autopilot.

**Quick answer — How do you install a free SSL certificate on a VPS?**

To install a free SSL certificate on a VPS, point the domain at the server, open port 80, install certbot, then run `sudo certbot --nginx -d example.com`. Let's Encrypt issues a 90-day certificate and certbot renews it by timer. On **JadeKVM** you have root, so the whole setup takes about 5 minutes.

**In brief**

- **Prerequisites**: the A record resolves and port 80 is open in UFW.
- **certbot --nginx** gets the certificate and edits the server block.
- **90-day certificates**, renewed by a systemd timer or cron job.
- **Test renewal** with `certbot renew --dry-run` once.

## How to install a free SSL certificate on a VPS in 5 steps?

The EFF recommends the snap package of certbot; the apt package is a fine fallback.

1. **Check DNS and ports** — Confirm dig +short example.com returns the server IP and that UFW allows 80 and 443.
2. **Install snapd and certbot** — Run sudo apt install snapd, then sudo snap install --classic certbot.
3. **Link the command** — Run sudo ln -s /snap/bin/certbot /usr/local/bin/certbot.
4. **Request the certificate** — Run sudo certbot --nginx -d example.com -d www.example.com and give an email for expiry notices.
5. **Test renewal** — Run sudo certbot renew --dry-run and check the timer with systemctl list-timers.

## Which certbot install method should you use?

*Ways to install certbot on Debian 13 and Ubuntu 24.04 and how each one renews*

| Method | Command | Updates | Renewal |
| --- | --- | --- | --- |
| Snap (EFF's choice) | snap install --classic certbot | Automatic through snapd | snap.certbot.renew timer |
| apt package | apt install certbot python3-certbot-nginx | With system updates | certbot.timer |
| Docker image | docker run certbot/certbot | Pull a new image | Your own cron job |

## What does certbot change in the nginx config?

**It adds a listen 443 ssl block with the certificate paths and, if you agree, a redirect from HTTP to HTTPS.** The files live in /etc/letsencrypt/live/example.com/. Certbot backs up nothing, so keep a copy of your config before the first run.

The HTTP-01 check needs port 80 open, even after the redirect. Let's Encrypt calls http://example.com/.well-known/acme-challenge/ to confirm control of the name.

*Certbot with nginx (snap)*

```bash
sudo apt install -y snapd
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/local/bin/certbot
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run
systemctl list-timers | grep -i certbot
```

## Which is the best free SSL certificate for a VPS in 2026?

**Let's Encrypt through certbot is the standard choice: free, trusted by browsers and fully automatic.** Paid certificates add warranties or organisation checks, not stronger encryption. For a personal or business site on one server, the free one is enough.

Let's Encrypt applies rate limits, such as 50 certificates per registered domain each week. Use `--dry-run` or the staging server while you experiment.

## Why does the free SSL certificate fail to install?

**Most failures come from DNS that is not ready, or port 80 blocked.** Check the A record from outside with `dig`. Check `sudo ufw status` for 80/tcp. An AAAA record that points nowhere also breaks the check, since Let's Encrypt tries IPv6 first.

The guide on [how to point a domain to a VPS](https://jadekvm.com/guides/how-to-point-a-domain-to-a-vps/ "How do you point a domain to a VPS?") covers both records. The firewall side is in [the UFW guide](https://jadekvm.com/guides/how-to-set-up-a-ufw-firewall-on-a-vps/ "How do you set up a UFW firewall on a VPS?").

## Does HTTPS slow down a site on an Asia VPS?

**The TLS handshake adds one round trip with TLS 1.3, so the city matters more than the certificate.** JadeKVM read WonderNetwork's public pings on 16 November 2026: Singapore sits 23 ms from Bangkok, while Tokyo sits 80 ms away. Latency figures on JadeKVM pages are public averages measured by WonderNetwork between its own servers on 16 November 2026; they show how far apart the cities sit on the network, not a promise about any one JadeKVM server. A near city keeps that extra trip small. See [how to host a website on an Asia VPS](https://jadekvm.com/guides/how-to-host-a-website-on-an-asia-vps/ "How do you host a website on an Asia VPS?") for the full table.

## Questions about free SSL certificates on a VPS

### How long does a free SSL certificate last?

A Let's Encrypt certificate lasts 90 days. Certbot renews it about 30 days before expiry.

### Can I get a wildcard certificate for free?

Yes, with the DNS-01 challenge. It needs a DNS plugin or a manual TXT record.

### Do I need snap on Debian 13?

No. The apt package python3-certbot-nginx also works. The EFF documents the snap as its main path.

### Can I use a free certificate for mail?

Yes, a certificate works for any TLS service. Outbound port 25 is closed on JadeKVM, so send mail through a provider.

### Is SSL the same as TLS?

In daily use, yes. SSL is the old name; servers now run TLS 1.2 and 1.3.

**Verdict**

- **DNS first, port 80 open, then `certbot --nginx`**: a free certificate in minutes.
- Run one dry-run renewal so the 90-day cycle never surprises you.

## Sources

1. [Certbot instructions: nginx on Linux (snap)](https://certbot.eff.org/instructions?ws=nginx&os=snap) — EFF (read 2026-11-16)
2. [How It Works](https://letsencrypt.org/how-it-works/) — Let's Encrypt (read 2026-11-16)
3. [Challenge Types](https://letsencrypt.org/docs/challenge-types/) — Let's Encrypt (read 2026-11-16)
4. [Rate Limits](https://letsencrypt.org/docs/rate-limits/) — Let's Encrypt (read 2026-11-16)
5. [WonderNetwork: pings from Singapore](https://wondernetwork.com/pings/Singapore) — WonderNetwork (read 2026-11-16)

**Serve HTTPS from Hong Kong, Tokyo or Singapore** One price in every city. Pendant costs $4.50 a month on 12 months. [Order Pendant in Singapore](https://jadekvm.com/app/checkout/?plan=pendant&term=12m&location=sg-sin&from=how-to-install-a-free-ssl-certificate-on-a-vps&lang=en) · [See every plan](https://jadekvm.com/pricing/ "How much does a JadeKVM server cost per month?")

---

JadeKVM: JadeKVM sells Linux KVM VPS in Hong Kong, Tokyo and Singapore, paid in crypto with no ID document, and publishes the measured latency from each city to the rest of Asia. 5 plans from 1 to 16 GB of RAM cost the same in all three cities and, on the 12-month term, sit at least 25% under a named comparable no-KYC crypto plan read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
