I am trying to issue a certificate for *.illusorystudios.com and a few others. I use the DNS challenge with acme.sh. I just started getting the urn:ietf:params:acme:error:badNonce error, status 400.
I’ve turned off IPv6 entirely, so that’s not it. The nonce keeps changing each time it fails, so it’s definitely creating a new one. The DNS challenge waits only 2 minutes for TXT records to update, so it’s not sitting there forever. Anyway, as a result I cannot renew my certificates right now, but I’ve no idea what changed. I tried updating to the newest acme.sh and no change.
My website for illusorystudios.com is able to retrieve certificates. I am using this on a different server, which hosts faldon.org, zer7.com and a few others, as well as the illusorystudios.com mail server. That is the one having trouble.
The CSR was created with OpenSSL. The certificates are retrieved with acme.sh. I do not use certbot.
I tried renewing the same domains on another server and got the same error. Is there any way to check if there is some kind of block on the domains, or…? Really at a loss here.
badNonce errors aren’t exactly errors, and come from a different layer of the stack that isn’t considering your domain or what type of challenge you’re using.
An ACME client should resend the request with the new nonce. acme.sh does that, I think, but maybe it has a bug and isn’t doing so in this case.
I’m just guessing, but…
Are you using a recent version of acme.sh? What does “acme.sh -v” show?
Maybe you need to upgrade it?
Can you get more detailed log information? (Note: I don’t know if acme.sh’s logs can contain sensitive information like your API keys or private keys.)