It installs Let’s Encrypt client certbot, download SSL and certificates for your domain, configures Nginx to use these certificates, and set up automatic certificate renewal
sudo snap install core; sudo snap refresh core
sudo apt remove certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot