Ajout du hook à la création du certificat
This commit is contained in:
parent
ff416558df
commit
4c65bc7bdb
|
@ -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
|
||||
|
||||
~~~
|
||||
|
|
Loading…
Reference in a new issue