Skip to content

Setup SSL for Nginx!

First, install Certbot and the Nginx plugin using the following command:

Terminal window
sudo apt install certbot python3-certbot-nginx

Run Certbot to obtain an SSL certificate for your subdomain:

Terminal window
sudo certbot --nginx -d test.stockmonk.in

This command reloads the Nginx service to apply the changes.

Terminal window
sudo certbot renew --dry-run
sudo certbot renew