Mostra la pàginaRevisions anteriorsQuè hi enllaçaExporta a PDFTorna dalt Aquesta pàgina és només de lectura. Podeu veure'n el codi font, però no podeu canviar-la. Consulteu el vostre administrador si penseu que això és degut a algun error. = Let's Encrypt == info * [[https://eff-certbot.readthedocs.io/en/stable/using.html|User Guide]] * [[https://letsencrypt.org/getting-started/]] * certbot * instalación: [[https://certbot.eff.org/docs/install.html]] * método manual: [[https://certbot.eff.org/docs/using.html#manual]] * renovación: * [[https://certbot.eff.org/docs/using.html#re-creating-and-updating-existing-certificates]] * ? [[https://certbot.eff.org/docs/using.html#id19]] * cli : [[https://certbot.eff.org/docs/using.html#certbot-command-line-options]] * [[https://www.adictosaltrabajo.com/2016/07/21/obtencion-de-certificados-con-lets-encrypt/]] == install <code bash> sudo apt install software-properties-common sudo add-apt-repository universe sudo apt update sudo apt install certbot </code> + info: [[https://eff-certbot.readthedocs.io/en/stable/install.html]] == user guide * [[https://eff-certbot.readthedocs.io/en/stable/using.html]] * [[https://certbot.eff.org/]] == standalone (no webserver) <code bash> sudo certbot certonly --standalone --agree-tos --email sammy@your_domain -d <DOMAIN> sudo certbot renew [--dry-run] # programaticamente si hay que parar servicios: # --pre-hook "service haproxy stop" --post-hook "service haproxy start" # dejará los certificados del dominio en /etc/letsencrypt/live/<DOMAIN>/ </code> obtener los certificados de Let's Encrypt:<code bash> curl -s https://letsencrypt.org/certs/{isrgrootx1.pem.txt,letsencryptauthorityx3.pem.txt} > ~/letsencrypt-combined-certs.pem sudo cp ~/letsencrypt-combined-certs.pem /etc/letsencrypt/live/your_domain/ </code> /via: [[https://certbot.eff.org/lets-encrypt/debianbuster-other]]\\ /via: [[https://certbot.eff.org/instructions]] == DNS challenge Este método te exige poner una clave TXT en tu servidor DNS para certificar que puedes acceder a ese dominio: <code bash>sudo ./certbot-auto --manual --preferred-challenge dns certonly --email sammy@your_domain -d seedbox.torresegea.es</code> si todo está correcto, te genera 3 ficheros (''/etc/letsencrypt/live/<dominio>''), que corresponden a las líneas de configuración de apache correspondientes: * cert.pem -> SSLCertificateFile * chain.pem -> SSLCertificateKeyFile * privkey.pem -> SSLCACertificateFile Existen otros métodos (explicados en documentación) para validar un dominio == comandos * ''sudo ./certbot-auto --help all'' * ''sudo ./certbot-auto certificates'': listado de certicados * ''sudo ./certbot-auto certonly -d <dominio>'': renovación manual certificado == ejemplos * [[linux:debian:seedbox:nginx-letsencrypt|]] * [[web:security:letsencrypt:k0.vividumcodex.com]] * [[web:security:letsencrypt:seedbox.torresegea.es]] * [[web:security:letsencrypt:multidominio]] web/security/letsencrypt.txt Darrera modificació: 01/05/2022 23:26per mate