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.

15 lines
446B

  1. #!/bin/sh
  2. # https://community.letsencrypt.org/t/renew-incorrect-validation-certificate-for-tls-sni-01-challenge/64865/2
  3. #certbot renew --tls-sni-01-port=8888
  4. certbot renew --preferred-challenges http
  5. for _URL in `ls /etc/letsencrypt/live`; do
  6. cat /etc/letsencrypt/live/${_URL}/fullchain.pem \
  7. /etc/letsencrypt/live/${_URL}/privkey.pem \
  8. > /etc/letsencrypt/haproxy/${_URL}.pem;
  9. done;
  10. # Reload HAProxy
  11. service haproxy reload