:::: MENU ::::

¿Cómo creo un certificado con Certbot?

1. Instala certbot con:

    sudo apt install certbot python3-certbot-nginx
    sudo apt install certbot python3-certbot-apache

2. Crea el virtual host sin activar todavía el motor SSL (importante dejar comentadas las líneas indicadas):

    <VirtualHost *:443>

        ServerName docs.solodani.com

        #SSLEngine on
        #SSLCertificateFile /me-da-igual-esta-ruta/fullchain.pem
        #SSLCertificateKeyFile /me-da-igual-esta-ruta/privkey.pem

        ProxyPreserveHost On
        ProxyPass / http://localhost:6875/
        ProxyPassReverse / http://localhost:6875/

    </VirtualHost>

3. Reinicia Apache o Nginx

4. Lanza certbot

    sudo certbot --apache -d docs.solodani.com

5. Vuelve la configuración del Virtual Host y descomenta la línea:

    SSLEngine on



Hey! Qué opinas sobre el artículo?