From bac474c93c73f6b70f45353e2e205544db081924 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 22 Oct 2021 15:38:41 +0200 Subject: [PATCH] Ajouter 'infra/letsencrypt' --- infra/letsencrypt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 infra/letsencrypt diff --git a/infra/letsencrypt b/infra/letsencrypt new file mode 100644 index 0000000..2ae3ca8 --- /dev/null +++ b/infra/letsencrypt @@ -0,0 +1,27 @@ +# Let's encrypt + +# Installation +Installer les paquets : +``` +apt-get install dehydrated dehydrated-apache2 +``` + +Recharger Apache : +``` +systemctl reload apache2.service +``` + +``` +/usr/bin/dehydrated --register --accept-terms +``` + +# Générer un certificat + +Ajouter foo.libre-service.eu dans `/etc/dehydrated/domains.txt`. + +Lancer la génération : +``` +/usr/bin/dehydrated -c +``` + +Le certificat est généré dans `/var/lib/dehydrated/certs/foo.devinsy.fr`. \ No newline at end of file