Some scripts to create and renew all your certificates, and concatenate fullchain and privkey so haproxy is able to use it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
986 B

7 years ago
  1. # letsencrypt-haproxy
  2. Some scripts to create and renew all your certificates, and concatenate fullchain and privkey so haproxy is able to use it
  3. **For this to work, you should have configured haproxy to accept let's encrypt connection**
  4. More information [here](http://blog.victor-hery.com/index.php?article23/use-haproxy-with-let-s-encrypt)
  5. ([French version](http://blog.victor-hery.com/index.php?article22/utiliser-let-s-encrypt-avec-haproxy)
  6. ## Prerequisites
  7. You need to install certbot according to your distribution :
  8. For debian :
  9. ```
  10. apt-get install certbot
  11. ```
  12. ## How to create certificate
  13. Create a certificate with let's encrypt, then concatenate fullchain.pem and privkey.pem, then store the certificate in haproxy given path.
  14. Usage :
  15. ```
  16. ./create-certificate domain.tld >> /var/log/create-certificate.log
  17. ```
  18. ## How to renew certificates
  19. **Renew all certificate known by let's encrypt !**
  20. Usage :
  21. ```
  22. ./renew-certificate >> /var/log/renew-certificates.log
  23. ```