acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.44k stars 4.98k forks source link

DNS renew fails because acme.sh stores config in account.conf instead of domain directories #5321

Open saudiqbal opened 1 month ago

saudiqbal commented 1 month ago

Adding multiple domains / subdomains works for the first time but not on renewing because adding a new domain every time overwrites the config file in /acme.sh/account.conf then only the last domain renewal works not the one added before that.

Please fix it by storing environment variables (export command) in individual domain folders like domain.com_ecc/domain.com.conf

saudiqbal commented 1 month ago

Using the export command with same config with different passwords for different domains only renews the last domain.

szhu25 commented 1 month ago

Could you share which variables you entered got saved to accounts.conf instead of within each specific domain config files?

Domain configuration: deploy Account configuration: DNS, notify

saudiqbal commented 1 month ago

acme.sh replaces the values for each domain / subdomain instead of adding them in /acme.sh/domain.com_ecc/domain.com.conf

ACMEDNS_BASE_URL='https://auth.acme-dns.io'
ACMEDNS_USERNAME='xxx'
ACMEDNS_PASSWORD='xxx'
ACMEDNS_SUBDOMAIN='xxx'