I ran this command: sudo certbot --cert-name oppskrift.se --expand -d oppskrift.se,www.oppskrift.se
It produced this output: Your existing certificate has been successfully renewed, and the new certificate has been installed.
My web server is (include version): nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 22.04.4 LTS
My hosting provider, if applicable, is: VPS on hetzner
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): certbot 2.11.0
I've made changes to my nginx server config that certbot overrides when it renews my certificate. Is it possible to configure certbot to still use the nginx plugin to get a new certificate, and to still have certbot reload nginx after renewal, but not let it make any permanent changes to my nginx config?
I've found the relevant /etc/letsencrypt/renewal/ config file, and I tried removing the installer = nginx line from it, but it keeps getting added right back in. So that didn't work.
Because that uses the "run" command which gets fresh cert and sets renew profile. The difference is that renew will not make any updates to your nginx even when using --nginx plugin. Like:
I tried with -a nginx, but never while also adding -i null.
Because that uses the "run" command which gets fresh cert and sets renew profile. The difference is that renew will not make any updates to your nginx even when using --nginx plugin.
Ohh, I did not know they behaved differently. Thank you!
So when updating my certs (like what domains they apply to) I can use certonly. And when renewing, things should already work as I want I'll force a renewal to make sure!
EDIT:
I just tried renewing by running the following command:
I didn't trust that a "proper" renewal wouldn't touch my nginx config files even if --dry-run didn't. So I went with an actual refresh. I updated my preview post with some additional info