Certbot

Run the following command to create your SSL certificates

certbot certonly --standalone -d <yourdomain>

Now, test your nginx configuration

nginx -t

If all is good, restart nginx:

sudo systemctl restart nginx

Last updated