diff --git a/infra/letsencrypt.md b/infra/letsencrypt.md index 00e3cbd..3292ae3 100644 --- a/infra/letsencrypt.md +++ b/infra/letsencrypt.md @@ -24,4 +24,19 @@ Lancer la génération : /usr/bin/dehydrated -c ``` -Le certificat est généré dans `/var/lib/dehydrated/certs/foo.libre-service.eu/`. \ No newline at end of file +Le certificat est généré dans `/var/lib/dehydrated/certs/foo.libre-service.eu/`. + +# Renouvellement automatique + +Ajouter un script cron dans `/etc/cron.weekly/dehydrated` : +``` +#!/bin/bash + +/usr/bin/dehydrated -c +systemctl reload apache2.service +``` + +Et lui donner les bonnes permissions : +``` +chmod a+rx /etc/cron.weekly/dehydrated +```