I am not using certbot, only letsencrypt command, and this other question/answer is so complex to something so simple: use --expand in a letsencrypt command.
The question here: how to use --expand, what the correct syntax?
there are no example in the guide.
Supposing that domain1 is the main domain, and domain2 and domain3 was created with the initial command, letsencrypt --apache -d domanin1 -d www.domanin1 -d wiki.domanin1 -d domanin2 -d www.domanin2 -d domanin3
... What the correct syntax to add a domain4? 1, 2 ... or 5?
letsencrypt --apache --expand domanin4letsencrypt --apache --expand -d domanin4letsencrypt --expand -d domanin4letsencrypt --apache --expand -d domanin1 -d domanin4letsencrypt --apache --expand -d domanin1 -d www.domanin1 -d wiki.domanin1 -d domanin2 -d www.domanin2 -d domanin3 -d domain4
PS: need to repeat all domains and subdomains in the expansion?
This question will have no answer... Because
letsencryptis no longer developed (!), if you using: you using something junk.(see community.letsencrypt.org/24474)
So, the remain question is "how to do an
--expandequivalent with certbot?" Because:(see letsencrypt-cli/issues)
So, as the question request, simplest
certbot --hookscommand to expand certificate?PS: somebody say that it is impossible!