Best SSL Certificate for VPS Hosting
The best SSL certificate for a VPS is a free Let's Encrypt certificate issued and renewed by an ACME client such as Certbot. A VPS gives you something shared hosting does not: you own the web server, so you own the certificate lifecycle. That is also the risk. Nobody else is watching the expiry date, and a failed renewal shows up as a browser warning for every visitor.
Three workable SSL certificate setups for a VPS
- Certbot with automatic renewal. The standard on a Linux VPS. Certbot edits your Nginx or Apache configuration, issues through Let's Encrypt, and installs a systemd timer or cron job that renews before expiry. Best when the VPS has a public IP and port 80 reachable.
- acme.sh or lego with DNS-01. No open port needed. The client adds a TXT record through your DNS provider's API, which also makes wildcard certificates possible. Best behind a firewall or when the web server only listens on 443.
- Browser-issued certificate. You generate a CSR and key, complete HTTP-01 or DNS-01 validation in the browser, then download CRT, KEY and CA bundle and place them yourself. Best when you do not want an ACME client on the box, or when the server cannot reach the internet freely.
Nginx: the four lines that matter
server {
listen 443 ssl;
http2 on;
server_name example.com www.example.com;
ssl_certificate /etc/ssl/example/fullchain.pem;
ssl_certificate_key /etc/ssl/example/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_cache shared:SSL:10m;
}
fullchain.pem is the leaf certificate followed by the intermediate bundle. Serving the leaf alone works in Chrome and fails in Android apps, cURL and most API clients, which is the single most common VPS certificate mistake. Never point ssl_certificate at the leaf file on its own.
On Apache the equivalent is SSLCertificateFile for the leaf, SSLCertificateKeyFile for the key and SSLCertificateChainFile for the bundle. Reload the server after every change; a certificate on disk does nothing until the process reloads.
Why SSL certificate renewals fail on a VPS
- Port 80 is closed. HTTP-01 validation needs a reachable path. A firewall rule or a container that only publishes 443 breaks renewal silently until the certificate expires.
- A stale AAAA record. If the AAAA record still points at the previous VPS, validation can hit the wrong machine and fail. Compare records with the DNS lookup.
- The web server did not reload. The renewal succeeded, the file changed, and the old certificate stayed in memory. Add a deploy hook that reloads the service.
- File permissions. A private key readable by everyone, or a directory the ACME client cannot write, breaks the next run.
- CAA records. A CAA record naming only one authority blocks every other authority. Check with the CAA checker before you switch providers.
Choosing an SSL certificate setup for your VPS
| Setup | Wildcard | Needs port 80 | Automation | Best for |
|---|---|---|---|---|
| Certbot, HTTP-01 | No | Yes | Full | A single server with a public IP |
| acme.sh, DNS-01 | Yes | No | Full | Firewalled servers, wildcards, many subdomains |
| Browser-issued | Yes | Optional | Manual, with alerts | Servers without an ACME client, or one-off migrations |
| Paid DV or OV | Sometimes | Optional | Manual or vendor tooling | Purchase records and organisation validation |
Verify from outside the box
Do not trust the local configuration. Run an external check that shows the chain, the SAN list and the negotiated protocol: Live SSL Checker. For a raw handshake from the server itself, use openssl s_client with -servername and read the Verify return code at the end.
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null 2>/dev/null | tail -5
A return code of 0 means the chain completed. Codes 20 and 21 mean a missing or invalid intermediate, which is almost always the fullchain mistake above.
Add expiry monitoring, not just automation
Automation fails quietly. Keep an independent check that tells you when a certificate has fewer than 14 days left, especially if you run several sites on one VPS. Let's Encrypt's default lifetime moves from 90 to 64 days on 10 February 2027 and to 45 days on 16 February 2028 (Let's Encrypt announcement), so a broken renewal shows up sooner. The SSL Checker shows days remaining for any hostname, and the bulk SSL checker covers a list of domains at once.
Related reading: installing free SSL on Nginx, installing free SSL on Ubuntu and fixing SSL certificate renewal failures.
Frequently Asked Questions
Is a free certificate good enough for a production VPS?
Yes for almost every site. Let's Encrypt certificates are publicly trusted, support TLS 1.3 and are accepted by browsers, payment gateways and app stores. Paid certificates add validation level, warranty and support, not stronger encryption.
Can I use one certificate for several sites on the same VPS?
Yes if the hostnames fit in one SAN list, up to the issuer's limit, or if you use a wildcard. Otherwise keep one certificate per site; separate files make partial failures easier to isolate.
What happens when a Let's Encrypt certificate expires on a live server?
Every browser shows a full-page warning and API clients reject the connection. There is no grace period. Renew when a third of the lifetime is left (30 days on a 90-day certificate, about 21 on a 64-day one), not at 3 days.
✅ 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.