...
Skip to main content
Print

How to Install a Free SSL Certificate With Certbot

With Certbot you install a free SSL certificate from Let’s Encrypt in a few minutes. Certbot configures your web server automatically and renews the certificate every 90 days by itself. The requirement is that your domain name points to the IP address of your VPS with an A record and that ports 80 and 443 are open.

Step 1: install Certbot

If you use Nginx:

apt install certbot python3-certbot-nginx -y

If you use Apache:

apt install certbot python3-certbot-apache -y

Step 2: request the certificate

certbot --nginx -d jedomein.nl -d www.jedomein.nl

If you use Apache, replace --nginx with --apache. Certbot asks for your email address and adjusts the configuration, so your website works via HTTPS.

Step 3: test the automatic renewal

Certbot renews certificates automatically. Test whether that works:

certbot renew --dry-run

Certbot on AlmaLinux

dnf install epel-release -y
dnf install certbot python3-certbot-nginx -y

Prefer a paid certificate?

For web shops and businesses, a certificate with organisation validation or a wildcard is often more convenient. See the SSL certificates from Xitens.

Related articles

Table of Contents