For most of the certs I get from Let’s Encrypt, they get updated into their own directories (/etc/letsencrypt/live/domain & /etc/letsencrypt/archive/domain)
For one of the domains I use LE for, upon renewal, it’s generating new subdirectories - /etc/letsencrypt/live/domain-000n & /etc/letsencrypt/archive/domain-000n
Why is the renewal failing for one domain, but not others?
This means that you specified a different set of domains (probably partially but not completely overlapping) for your renewal. Thus, this is being tracked as a distinct certificate and both of them will be renewed in the future.
You have some certificates for just nc.antipaucity.com and some for nc.antipaucity.com and office.antipaucity.com. If you request a “subset cert” (my own jargon) that covers a smaller number of names, Certbot tried to make that as a duplicate (with -0001) instead of changing the larger certificate to cover only the smaller set. My guess is that perhaps
you first requested nc.antipaucity.com, which created the nc.antipaucity.com certificate lineage
still later, you requested only nc.antipaucity.com, which made Certbot create nc.antipaucity.com-0001 covering only that domain (without office), because this was a subset cert
now, you have both (nc.antipaucity.com covering nc and office, and nc.antipaucity.com-0001 covering only nc)
I have separate calls to Let’s Encrypt for both of those domains (nc.antipaucity.com and office.antipaucity.com) … never had them together … so why would LE think they should be coupled?
If you used certbot --apache or certbot --nginx, it would have defaulted to wanting to obtain a single certificate covering all of the domain names that that server was serving.
Otherwise, I’d need to see what commands you ran in order to try to explain it.
To generate and renew all of my domains (with different -d arguments for each one, of course). I have a few certs that cover more than one domain/subdomain.
Maybe never is not the right word 21st July you created a cert covering both domains crt.sh | 176293914
CRT ID DOMAIN (CN) VALID FROM VALID TO EXPIRES IN SANs
176293914 nc.antipaucity.com 2017-Jul-21 15:06 CEST 2017-Oct-19 15:06 CEST 19 days nc.antipaucity.com
office.antipaucity.com
certbot certonly --force-renewal --cert-name nc.antipaucity.com -d nc.antipaucity.com # plus any authentication options that you needed before, like --standalone
certbot certonly --force-renewal --cert-name office.antipaucity.com -d office.antipaucity.com # plus any authentication options that you needed before, like --standalone
If you do have references to the -0001 cert in the web server configuration, you should change those to point at the other cert before running the delete command.