certbot
This is an old revision of the document!
Table of Contents
LetsEncrypt
Renovar certificados haproxy
Script guarrete
root@ns3191080:/srv/vm/brutalix# cat renovar.sh
rutalive="/etc/letsencrypt/live"
destino="/etc/cert"
rutadominios="/srv/vm/brutalix"
certbot renew --webroot --webroot-path /var/www/html/
for dom in $(cat $rutadominios/dominios.lst)
do
echo creando cert haproxy $destino/$dom.pem
cat $rutalive/$dom/privkey.pem $rutalive/$dom/fullchain.pem > $destino/$dom.pem
done
echo recargando haproxy
service haproxy restart
acl haproxy
#ACL Certbot
acl certbot path_beg /.well-known/acme-challenge
use_backend backend-certbot if certbot
#Backend Certbot
backend backend-certbot
server local 127.0.0.1:80
Limpiar certificados movidos
root@ns3061228:/# rm /etc/letsencrypt/renewal/cloud.old.conf root@ns3061228:/# rm /etc/letsencrypt/renewal/nextcloud.old.conf
certbot.1763506186.txt.gz · Last modified: by etfiat
