bash
sudo apt-get install certbot python3-certbot-nginx
sudo systemctl restart nginx
sudo certbot –nginx -d yourdomain.you -d www.yourdomain.you