certbot
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| certbot [2024/03/23 10:32] – creado etfiat | certbot [2025/12/18 10:00] (current) – [Limpiar certificados movidos] etfiat | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== LetsEncrypt ====== | ====== LetsEncrypt ====== | ||
| + | |||
| + | ==== Renovar certificados haproxy ==== | ||
| + | |||
| + | === Script guarrete === | ||
| + | |||
| + | < | ||
| + | root@ns3191080:/ | ||
| + | rutalive="/ | ||
| + | destino="/ | ||
| + | rutadominios="/ | ||
| + | |||
| + | certbot renew --webroot --webroot-path / | ||
| + | |||
| + | for dom in $(cat $rutadominios/ | ||
| + | do | ||
| + | echo creando cert haproxy $destino/ | ||
| + | cat $rutalive/ | ||
| + | done | ||
| + | echo recargando haproxy | ||
| + | service haproxy restart | ||
| + | |||
| + | </ | ||
| + | |||
| + | === acl haproxy === | ||
| + | |||
| + | < | ||
| + | |||
| + | #ACL Certbot | ||
| + | acl certbot path_beg | ||
| + | use_backend backend-certbot if certbot | ||
| + | | ||
| + | #Backend Certbot | ||
| + | backend backend-certbot | ||
| + | server local 127.0.0.1: | ||
| + | |||
| + | </ | ||
| ==== Limpiar certificados movidos ==== | ==== Limpiar certificados movidos ==== | ||
| Line 6: | Line 42: | ||
| root@ns3061228:/# | root@ns3061228:/# | ||
| root@ns3061228:/# | root@ns3061228:/# | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Solicitud certificado LetsEncrypt ==== | ||
| + | |||
| + | |||
| + | < | ||
| + | #simular solicitud | ||
| + | certbot certonly --register-unsafely-without-email -d plycaf.unizar.es --webroot --webroot-path / | ||
| + | |||
| + | #Solicitud real | ||
| + | certbot certonly --register-unsafely-without-email -d plycaf.unizar.es --webroot --webroot-path / | ||
| + | |||
| + | # | ||
| + | [root@plycaswf1 ~]# ls / | ||
| + | cert.pem | ||
| + | |||
| + | # | ||
| + | certbot certonly --register-unsafely-without-email -d licitacionf.unizar.es, | ||
| </ | </ | ||
certbot.1711189977.txt.gz · Last modified: by etfiat
