How to install a free SSL certificate with Let's Encrypt
Updated 7/18/2026
HTTPS is no longer optional: browsers mark sites without it as insecure and Google penalizes them. Let\'s Encrypt offers free SSL certificates, and the certbot tool installs and renews them automatically.
Before you start
You need a domain that already points to your server IP (an A record). See the guide How to point a domain to your VPS if you have not done this yet.
Install on Nginx
apt-get install -y certbot python3-certbot-nginx
certbot --nginx -d example.com -d www.example.com
Certbot asks for an email, edits the Nginx config for you and enables HTTPS. Answer redirect to force all traffic to HTTPS.
Install on Apache
apt-get install -y certbot python3-certbot-apache
certbot --apache -d example.com -d www.example.com
Automatic renewal
Let\'s Encrypt certificates are valid for 90 days. Certbot already installs a timer that renews them automatically. Test that it works:
certbot renew --dry-run
If you run apps in Docker, many images (for example those in our one-click app catalog) manage the certificate themselves on your server\'s .cloudlinux.ro subdomain.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to run your own ChatGPT on a VPS
Run local AI models or a ChatGPT-style interface on your own server, with private data and no per-user monthly subscription.
Updated 7/18/2026GuidesThe best VPS for WordPress: which plan to choose
How much CPU, RAM and disk you need for a fast WordPress site, based on traffic, plus how to install it with one click.
Updated 7/18/2026GuidesHow to point a domain to your VPS
A simple guide to link your domain to the server IP address, with A and AAAA records, plus how long DNS propagation takes.
Updated 7/18/2026