Apache : Installation d'un certificat Let's Encrypt

De www.yakakliker.org

Installation de Certbot

sudo apt install certbot python3-certbot-apache

Vérification de la configuration Apache (Virtualhost)

sudo nano /etc/apache2/sites-available/your_domain.conf

Vérifier la présence de ces lignes :

...
ServerName your_domain
ServerAlias www.your_domain
...

Tester la configuration :

sudo apache2ctl configtest

Recharger la configuration :

sudo systemctl reload apache2

Obtention du certificat SSL

sudo certbot --apache

Vérification du renouvellement automatique de Certbot

sudo systemctl status certbot.timer

Pour tester

sudo certbot renew --dry-run


Lien

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04-fr

https://letsencrypt.org/fr/getting-started/