SSL Certificates

As I recall, setting up SSL certificates for a website was challenging and often came with associated costs. However, a few months ago, I discovered an incredibly user-friendly tool for this purpose called Certbot. It offers the following features:

  • Obtains SSL certificates (typically from Let's Encrypt)
  • Automates the installation of certificates (for Apache/Nginx)
  • Renews certificates: Let's Encrypt certificates are valid for 90 days, and this tool automatically renews them

Additionally, it’s worth highlighting the significance of Let's Encrypt. Having access to free SSL certificates is remarkable. This organization was founded in 2014, meaning that before its inception, purchasing certificates was generally required.

To install certbot in Ubuntu, use:

sudo apt install certbot python3-certbot-nginx

Also here is an example of how to use the tool:

sudo certbot --nginx -d example.com -d www.example.com

Also, it could be even more simple just using the comand

sudo certbot

It will show the webpages configured in the server automatically, making it easier to configure.

In case it's needed to list the installed certificates, just use:

sudo certbot certificates

And in case it's needed to remove one certificate:

sudo certbot delete --cert-name example.com 

Pages:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04