ACME client Cloudflare DNS challenge help

Started by AndBobsYourUncle, December 09, 2024, 05:17:48 AM

Previous topic - Next topic
So, I have the entire ACME client setup working with Cloudflare using the DNS challenge.

The problem is that it only works when I manually click the button to try renewing the certificate. After a few months, when it comes time to renew, the cron job runs and it fails.

The failure is `invalid domain` for the challenge subdomain.

However, if I click the manual refresh button at that time, it works and renews.

Obviously this is just a frustrating inconvenience, as I have to go in and make sure I manually click the button every few months. But, is there anything I can try here? Anything that I can do to debug further?

Thanks in advance.

This is what the log looks like when it fails when running as the cron:
```
2024-12-08T18:12:04-08:00   acme.sh   [Sun Dec 8 18:12:04 PST 2024] Error adding TXT record to domain: _acme-challenge.DOMAIN
2024-12-08T18:12:04-08:00   acme.sh   [Sun Dec 8 18:12:04 PST 2024] invalid domain
2024-12-08T18:12:04-08:00   acme.sh   [Sun Dec 8 18:12:04 PST 2024] Adding TXT value: ZCJ-hcyOzG8MJsaddaShI7NyVmMvLiwk8NRnUrF30Ts for domain: _acme-challenge.DOMAIN
```

The "debug" log level doesn't really give more details from what I've found.