From e91d7a207542d4f83b3dd036b149b3839b62b445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?victor=20h=C3=A9ry?= Date: Tue, 6 Feb 2018 11:50:35 +0100 Subject: [PATCH] use certbot from packages as it is now available --- README.md | 9 +++++++++ create-certificat | 2 +- renew-certificates | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d9fd66..d3f31d7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@ Some scripts to create and renew all your certificates, and concatenate fullchai More information [here](http://blog.victor-hery.com/index.php?article23/use-haproxy-with-let-s-encrypt) ([French version](http://blog.victor-hery.com/index.php?article22/utiliser-let-s-encrypt-avec-haproxy) +## Prerequisites + +You need to install certbot according to your distribution : + +For debian : +``` +apt-get install certbot +``` + ## How to create certificate Create a certificate with let's encrypt, then concatenate fullchain.pem and privkey.pem, then store the certificate in haproxy given path. diff --git a/create-certificat b/create-certificat index a08818a..73b3f2c 100755 --- a/create-certificat +++ b/create-certificat @@ -1,7 +1,7 @@ #!/bin/bash #Configuration variables -certbot_bin="/root/letsencrypt/certbot-auto" +certbot_bin="/usr/local/bin/certbot" haproxy_pem_path="/etc/haproxy/cert" diff --git a/renew-certificates b/renew-certificates index 9f9975a..5e8b707 100755 --- a/renew-certificates +++ b/renew-certificates @@ -1,7 +1,7 @@ #!/bin/bash #Configuration variables -certbot_bin="/root/letsencrypt/certbot-auto" +certbot_bin="/usr/local/bin/certbot" haproxy_pem_path="/etc/haproxy/cert" #Renew all certificates that needed it