Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

web-ssl-with-cerbot

Step 1 — Installing Certbot

sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot

Step 2 — Confirming Nginx’s Configuration

sudo nano /etc/nginx/sites-available/your_domain
  • Find the existing server_name line. It should look like the following:/etc/nginx/sites-available/your_domain
...
server_name your_domain www.your_domain;
...

check nginx syntax

sudo nginx -t
# reload 

sudo systemctl reload nginx

Step 3 — Allowing HTTPS Through the Firewall

sudo ufw status
sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP'
sudo ufw status

Step 4 — Obtaining an SSL Certificate

sudo certbot --nginx -d your_domain -d your_domain

Step 5 — Verifying Certbot Auto-Renewal

sudo certbot renew --dry-run

About

ssl cerbot with nginx and linux

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors