htmlwordpress y vamos a cifrar — Bernd Kuhlen
BK BERND KUHLENTodas las notas ↗
← Volver a las notas de campo

wordpress y vamos a cifrar

Nota de archivo: Este artículo documenta las herramientas de Ubuntu y Certbot disponibles en 2019.

He aquí cómo configurar un certificado TLS de Let's Encrypt en Ubuntu 18.04, suponiendo que Apache, una pila de LAMP y WordPress ya están en ejecución y que usted controla el dominio.

añadir apt-repository ppa:certbot/certbot
apt install python-certbot-apache
certbot —apache -d berndkuhlen.de -d www.berndkuhlen.de
certbot renew —ejecutar en seco

Asegúrese de tener una cron de Certbot para mantener el certificado actualizado.

Así es como se ve el mío:

0 0 * * * /usr/bin/certbot renew >/home/ubuntu/certbot.txt 
2>/home/ubuntu/certbot.err

Esta es mi configuración, que se generó automáticamente:

renew_before_expiry = 30 days
version = 0.31.0
archive_dir = /etc/letsencrypt/archive/berndkuhlen.de
cert = /etc/letsencrypt/live/berndkuhlen.de/cert.pem
privkey = /etc/letsencrypt/live/berndkuhlen.de/privkey.pem
chain = /etc/letsencrypt/live/berndkuhlen.de/chain.pem
fullchain = /etc/letsencrypt/live/berndkuhlen.de/fullchain.pem
Options used in the renewal process
[renewalparams]
account = SOMEACCOUNTID
authenticator = apache
installer = apache
server = https://acme-v02.api.letsencrypt.org/directory

Me sorprendió ver que Certbot actualizó automáticamente mi configuración de Apache para incluir el nuevo certificado y escuchar en el puerto 443.


BERND KUHLEN · NOTAS DE CAMPO SOBRE INGENIERÍA EN LA NUBE
ES
EnglishENDeutschDEEspañolES中文ZH