Up until recently I have not made use of the nginx plugin. I was advised we don’t need that plugin and it is best practice not to have another app (certbot) modify our nginx configuration in any way.
However, nginx was not reloading whenever the certificate was renewed, so it kept serving the old certificate from cache.
I wonder, what happens if I do specify to use --nginx, but also include certonly?
sudo certbot certonly --nginx --agree-tos --redirect --uir --hsts --staple-ocsp --must-staple --rsa-key-size 3072 -a webroot --webroot-path=/srv/webroot/examplecom -d example.com -d www.example.com
Will this trigger nginx to reload, but not touch nginx in any other way?
And I also wonder what might be the difference between --nginx
and -i nginx
.
My domain is:
[not relevant and withholding because I rather not be know as the webmaster for that domain]
I am wondering if I should run this command:
sudo certbot certonly --nginx --agree-tos --redirect --uir --hsts --staple-ocsp --must-staple --rsa-key-size 3072 -a webroot --webroot-path=/srv/webroot/examplecom -d example.com -d www.example.com
My web server is (include version):
nginx 1.14.12
The operating system my web server runs on is (include version):
Debian 9.8
My hosting provider, if applicable, is:
irrelevant
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
0.10.2