From 4c65bc7bdbb08c6937dd128da4c79f76f894aac8 Mon Sep 17 00:00:00 2001 From: jlecour Date: Wed, 2 Jun 2021 10:51:06 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20hook=20=C3=A0=20la=20cr=C3=A9ation?= =?UTF-8?q?=20du=20certificat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoLetsEncrypt.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ~~~