DNSMadeEasy Certificate renewal / Creation failing #768
-
I am having some issues when issuing or renewing LE certificates using DNSMadeEasy as the DNS provider. This has previously worked well and been fairly reliable, but right now it's failing almost every time. There are two failure scenarios:
Orchestrator function 'IssueCertificate' failed: The activity function 'CheckIsReady' failed: "ACME validation status is invalid. Required retry at first. On the face of it this suggests that the DNS provider is not creating the record, but when I look at the DNSMadeEasy activity log I can see the create request was received and acted on, and when I check the domain TXT records the acme challenge record is present and correct (_acme-challenge.txxxxxn.cxxxxxxxxxx3.com). I can delete this record, wait a minute or two, and then try again - but the same thing happens. The record is created but I still get an error saying no TXT record was found.
Orchestrator function 'IssueCertificate' failed: The activity function 'CheckIsReady' failed: "ACME validation status is invalid. Required retry at first. When I check the DNSMadeEasy activity log I can see an initial request to delete the pre-existing TXT record, followed by a request to create a fresh one. If I check the DNS records the new acme challenge record is present and correct so those DNS operations did complete correctly. The error message however is referring to the pre-existing TXT record. In both scenarios it looks like the "CheckIsReady" code is checking for the acme challenge too quickly after issuing the commands to the DNS provider. Even though we can see the required deletions and creations happening pretty much instantly it seems that the code is not waiting long enough for those operations to complete. Has anyone seen this behaviour before? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I'm not familiar with DNSMadeEasy, but is it possible that the zone to which AcmeBot has access to update records is different to the zone used by public DNS (i.e. if you were to query the name servers, |
Beta Was this translation helpful? Give feedback.
-
John, |
Beta Was this translation helpful? Give feedback.
-
I have removed the application and redeployed using the same KeyVault. This also had the advantage of bring the Runtime versions (4.636.0.23246 -- 4.836.0.23246) and Function App up to latest variants. Unfortunately, this has not resolved the issue. One of the issues appears to be we have installed the application, it has worked for a period of time, but issues have now appeared and that is when requirements such as "how do I ensure update ?"has been asked. My process to Redeploy. But upgrade requires a different process I assume. Acmebot:VaultBaseUrl (Critical) Then remove all resources generated by original deployment of KeyVault-acmebot with exception of KeyVault if you are preserving the current certificates. Redeploy the application using deployment templates provided. Application will restart and on browsing the UI, all certificate details should be displayed as they were prior to redeployment. |
Beta Was this translation helpful? Give feedback.
-
The answer to the issue we had been having was mainly down to DNS. |
Beta Was this translation helpful? Give feedback.
The answer to the issue we had been having was mainly down to DNS.
The organisation used wildcard on the DNS zone supplying the certificates.
Any exceptions thrown during the creation of the certificate which left a txt record for a requested subdomain caused the whole DNS resolution process to fail for that subdomain. This then caused issues with the acme protocol on retry of certificate creation process.
The simple workaround was to add A records for all the subdomains to the zone. This resolved the issue with DNSMadeEasy which appears to have a different standard than others (Cloudflare for example)