Certbot
Run the following command to create your SSL certificates
First, stop the nginx service if it's running, or anything running on port 80.
certbot certonly --standalone -d <yourdomain>
Now, test your nginx configuration
nginx -t
If all is good, restart nginx:
sudo systemctl restart nginx
Last updated