ssl django nginx 1

ssl django nginx

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo ufw allow ssh
sudo ufw enable
sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP'
sudo ufw status
sudo certbot --nginx -d example.com -d www.example.com

Here is what the above code is Doing:
1. Install the Certbot client.
2. Allow incoming connections for SSH (port 22), which is used for remote logins to your server.
3. Enable the firewall.
4. Allow incoming connections for Nginx.
5. Delete the default rule allowing HTTP traffic.
6. Check the status of the firewall to make sure it’s active.
7. Request a certificate for your domain.

Similar Posts