Apache : Installation d'un certificat Let's Encrypt

De www.yakakliker.org
Révision datée du 22 mai 2024 à 16:37 par Administrateur (discussion | contributions) (Page créée avec « === Installation de Certbot === <syntaxhighlight lang="bash"> sudo apt install certbot python3-certbot-apache </syntaxhighlight> === Vérification de la configuration Apache (Virtualhost) === <syntaxhighlight lang="bash"> sudo nano /etc/apache2/sites-available/your_domain.conf </syntaxhighlight>Vérifier la présence de ces lignes :<syntaxhighlight lang="bash"> ... ServerName your_domain ServerAlias www.your_domain ... </syntaxhighlight>Tester la configuration :... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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/