Browse Source

use certbot from packages as it is now available

master
victor héry 6 years ago
parent
commit
e91d7a2075
3 changed files with 11 additions and 2 deletions
  1. +9
    -0
      README.md
  2. +1
    -1
      create-certificat
  3. +1
    -1
      renew-certificates

+ 9
- 0
README.md View File

@ -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.

+ 1
- 1
create-certificat View File

@ -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"

+ 1
- 1
renew-certificates View File

@ -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

Loading…
Cancel
Save