Setup SSL for Nginx!
Install Certbot and the Nginx Plugin
Section titled “Install Certbot and the Nginx Plugin”First, install Certbot and the Nginx plugin using the following command:
sudo apt install certbot python3-certbot-nginxObtain an SSL Certificate
Section titled “Obtain an SSL Certificate”Run Certbot to obtain an SSL certificate for your subdomain:
sudo certbot --nginx -d test.stockmonk.inThis command reloads the Nginx service to apply the changes.
Renewing the Certificate
Section titled “Renewing the Certificate”sudo certbot renew --dry-run
sudo certbot renew