In this section we will learn how we can enable SSL in a site which is served by nginx
Run the following command
sudo apt install certbot python3-certbot-nginx
Run the following commands
sudo su
cd etc/nginx/sites-available
certbot
after choose the domain name or names by providing there index number you can also provide multiple domain names indexs useing coma after that press enter. Next Just Restart Your Nginx
nginx -s reload
certbot certificates
This Command will inform you about the validation of your SSL certificates
sudo certbot renew
This Command will renew all expeired SSL certificates and after that restart your nginx
nginx -s reload