ssl/tls
Using certbot
Certbot is a tool that helps to get and keep certificates updates
If Certbot isn't already installed, run the following commands:
$ sudo apt update
$ sudo apt install certbotCheck existing certificates:
$ sudo certbot certificatesOs certificados ficam por padrão na pasta /etc/letsencrypt/live/
To update the existing certificates, first stop your webserver (nginx, apache, or another):
$ sudo systemctl stop apache2
or
$ sudo systemctl stop nginxYou can check if your Certbot is set properly for renewing the certificate:
$ sudo certbot renew --dry-runIf everything is well, you can renew the certificate running:
$ sudo certbot renewSuba o servidor web novamente
$ sudo systemctl start apache2
or
$ sudo systemctl start nginxLast updated
Was this helpful?