I just configured acme-dns with acme.sh for servers that are not directly connected to the internet. Everything seems working fine for a subdomain, I can generate a cert.
In domain.com zone file, I have _acme-challenge.www.domain.com CNAME 281222f1-ac88-4ee1-94c3-5d764fde1b41.auth.domain.com.
The question is :
I have multiple subdomains (www, ftp etc). Should I have create a new host in acme-dns or use the 2812[...]1b41 existing one and update it on the fly everything I need ? If I create all this entries :
Using this solution seems easiest for me, I will just have to deal with credentials stored in /root/.acme.sh/account.conf and then, not storing every credentials for each subdomains generated.
Is it a good usage for you ? How do you deal with multiple subdomains and acme-dns / acme.sh ?
I'm not aware of a good way to do this, unfortunately--acme.sh's support for acme-dns is very rudimentary, in that it only supports one set of credentials account-wide. You could create multiple CNAMEs as you describe, iff you were sure that none of those hostnames would try to renew at the same time--acme-dns will allow no more than two TXT records for a given FQDN. But the way acme-dns is really intended to be used is that each hostname will have its own alias.
Consequently, though I really don't like certbot, that's what I use if an instance needs to handle more than one hostname. Its integration script manages all the credentials behind the scenes.
OTOH, if all the services are on their own hosts with their own IP addresses, why not obtain each cert on its own host?
Hi @danb35
You described exactly the situation, acme-sh's support for acme-dns does not store every credentials for each subdomains.
Sorry, it was not clear in my first messages but I prefer to centralize cert management on a single host and I made all my tests with acme.sh and acme-dns. I think I'll keep acme-dns thanks to the ease of use and it "fall in works!".
I just discovered certifytheweb which can used acme-dns under the hood and it just works. Disadvantage is Windows only.
I'll check acme-dns-certbot you pointed out.
Finally it's more clear for me. For now my setup is ok with certifytheweb but I would prefer to make it works on linux with my own scripts for custom deployements per server and usages (postfix, apache, nginx etc).