Saltar al contenido principal

certbot

Con certbot se pueden crear certificados SSL validos y gratuitos para encriptar de extremo a extremo todos los servicios de ValerIA.

Certbot ubuntu para nginx

Para instalar certificados SSL de Letsencript en ubuntu para nginx.

sudo snap install core; sudo snap refresh core
sudo apt-get remove certbot
sudo snap install --classic certbot

Para crear un nuevo certificado:

sudo ln -s /snap/bin/certbot /usr/bin/certbot

o para que te deje elegir y te configure automaticamente el fichero de configuracion de nginx

sudo certbot --nginx
precaución

Recuerda que estos certificados no suelen tener una validez superior a 6 meses, por lo que deberas renovarlos periodicamente.

Test automatic renewal

The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:

sudo certbot renew --dry-run

The command to renew certbot is installed in one of the following locations:

  • /etc/crontab/
  • /etc/cron./
  • systemctl list-timers