Mise à jour de 'infra/letsencrypt.md'
This commit is contained in:
parent
d40cd4b73a
commit
337532c824
1 changed files with 16 additions and 1 deletions
|
@ -25,3 +25,18 @@ Lancer la génération :
|
||||||
```
|
```
|
||||||
|
|
||||||
Le certificat est généré dans `/var/lib/dehydrated/certs/foo.libre-service.eu/`.
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue