Shell/Bash: nginx certbot ubuntu Example

By

Shell/Bash Example: This is the "nginx certbot ubuntu" Example. compiled from many sources on the internet by SimpleTutorials.org

nginx certbot ubuntu

// Ubuntu 20.04
sudo apt install certbot python3-certbot-nginx

// Ubuntu 18.04
sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-nginx

// Configure ufw
sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP'
sudo ufw delete allow 'Nginx HTTPS'

sudo certbot --nginx -d example.com

ubuntu certbot nginx

sudo add-apt-repository ppa:certbot/certbot
sudo apt install python-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com

lets encrypt nginx

#Once you have installed CertBot and Lets Encyrypt, 
#and you have set up your server blocks, 
#you will be able to run the below script in your terminal
sudo certbot --nginx -d example.com -d www.example.com

nginx letsencrypt

sudo certbot renew
sudo service nginx restart


* Summary: This "nginx certbot ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others