Ajout du hook à la création du certificat

This commit is contained in:
jlecour 2021-06-02 10:51:06 +02:00
parent ff416558df
commit 4c65bc7bdb

View file

@ -191,12 +191,20 @@ main
D'autres hooks sont disponibles dans le [dépôt Ansible](https://gitea.evolix.org/evolix/ansible-roles/src/branch/stable/certbot/files/hooks).
Pour exécuter un hook automatiquement dès la création du certificat :
~~~
$ certbot certonly --webroot --webroot-path /var/lib/letsencrypt/ --deploy-hook /etc/letsencrypt/renewal-hooks/deploy/<hook>.sh -d example.com,www.example.com --cert-name example.com
~~~
Pour exécuter un hook manuellement, par exemple après la création du certificat :
~~~
# VERBOSE=1 RENEWED_LINEAGE=/etc/letsencrypt/live/<cert-name> /etc/letsencrypt/renewal-hooks/deploy/<hook>.sh
$ VERBOSE=1 RENEWED_LINEAGE=/etc/letsencrypt/live/<cert-name> /etc/letsencrypt/renewal-hooks/deploy/<hook>.sh
~~~
#
## Lister les certificats
~~~