Securing Nginx Web Server with Let's Encrypt

Опубликовано: 09 Апрель 2026
на канале: Quickloss3
406
21

Secure Nginx with Let's Encrypt on Ubuntu

Installing Certbot:
sudo snap install --classic certbot

create a symbolic link to the newly installed /snap/bin/certbot:
sudo ln -s /snap/bin/certbot /usr/bin/certbot

Confirming Nginx’s Configuration:
sudo nano /etc/nginx/sites-available/your_domain
if not then update and save it
sudo nginx -t
sudo systemctl reload nginx

Allowing HTTPS:
sudo ufw status
sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP'
sudo ufw status

Obtaining an SSL Certificate:
sudo certbot --nginx -d your_domain