If I use the certonly argument, will certbot still honor custom paths for --key-path, --fullchain-path, and --cert-path and install it in the custom path instead of the default location?
The reason I ask is because I used a similar command before, and it ended up installing the certificate in the default location and I had to manually copy it over to my custom paths. I am trying to understand if I failed to set permissions or if certonly prevents it from honoring custom paths.
I think those only work with certonly --csr. I say this not from personal experience but just scanning the docs just now. That --csr option is rarely used and not worth the trouble.
You could look at the --config-dir option. That might do what you want. Just know for any Certbot command you need to provide that too. Even any renew command.
Personally, I'd let Certbot do its normal thing and copy them after. Possibly in a script named by --deploy-hook
Thanks for the hints. I'm worried about any sort of auto renewal command will fail as a result too. I'm running on very little sleep right now, so perhaps i will go take a nap and then take another look at this again when I am refreshed.
The --deploy-hook setting is saved in the cert profile for each cert. So, gets run for each renew too
It gets passed env vars to see what you were invoked with (see the docs). Or, create a custom script for each cert and use that script in the deploy-hook
Well turns out it can't be a permissions problem because certbot has root access. So certonly really does ignore --cert-path, --key-path, -fullchain-path??? I just don't get it. Yeah the deploy-hook workaround should fix the issue but I wish it were more clear to not use these parameters.
It would not. The --csr option is not really an option, but more of a subcommand: it does not "store" the information entered on the command line, like webroots et c. It only uses it once, puts the certs in the current directory or the specified paths and then just quits without saving anything else.
It would have been more helpful probably if --csr was a subcommand next to run, certonly et c. I also don't think the installer plugins work with --csr.