Stop nginx before cert generation

main
Bob Mottram 2022-09-04 16:43:25 +01:00
parent fb54bdf405
commit c91ee85dc4
3 changed files with 7 additions and 1 deletions

View File

@ -255,7 +255,9 @@ ln -s /etc/nginx/sites-available/YOUR_DOMAIN /etc/nginx/sites-enabled/
Generate a LetsEncrypt certificate.
``` bash
systemctl stop nginx
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
systemctl start nginx
```
And restart the web server:

View File

@ -162,7 +162,9 @@ Enable the site:
Forward port 443 from your internet router to your server. If you have dynamic DNS make sure its configured. Add a TLS certificate:
systemctl stop nginx
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
systemctl start nginx
Restart your web server:

View File

@ -1537,7 +1537,9 @@ Ever feel like corporate social media is deliberately pressing your buttons or g
Forward port 443 from your internet router to your server. If you have dynamic DNS make sure its configured. Add a TLS certificate:
</p>
<div class="shell">
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL
systemctl stop nginx<br>
certbot certonly -n --server https://acme-v02.api.letsencrypt.org/directory --standalone -d YOUR_DOMAIN --renew-by-default --agree-tos --email YOUR_EMAIL<br>
systemctl start nginx
</div>
<p class="intro">
Restart your web server: