Based on what I posted back in this thread Prevent -0001 -xxxx Certificate Suffixes, I have been using the
--cert-name option when running certbot via a web control panel I develop like so:
"--cert-name " . $firstDomainInList
Unfortunately, even with that parameter, I saw a new folder created with the “-0001” suffix. My understanding was that if the certificate exists with that name, it is supposed to be updated. I ended up with two different certificates (the old one with the right name, and the new one with a suffix). This messed up things because the control panel software expects the path of the certificate to not use a suffix.
So, should I be using more than this parameter to make sure it always writes the certificate in the specified folder even if it exists? I see some options here in the documentation: https://certbot.eff.org/docs/using.html
--duplicate , and
Do I need to be using a combination of the two? Appreciate any help on this.