diff --git a/HowtoLetsEncrypt.md b/HowtoLetsEncrypt.md index 2d24944f..a70b8728 100644 --- a/HowtoLetsEncrypt.md +++ b/HowtoLetsEncrypt.md @@ -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/.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/ /etc/letsencrypt/renewal-hooks/deploy/.sh +$ VERBOSE=1 RENEWED_LINEAGE=/etc/letsencrypt/live/ /etc/letsencrypt/renewal-hooks/deploy/.sh ~~~ +# + ## Lister les certificats ~~~