A wildcard certificate fails when the domain's DNS is hosted elsewhere
A Let's Encrypt certificate request for *.example.com fails when the domain's DNS is hosted elsewhere. UrbeStack publishes the validation record only on its own DNS server, so using this server's nameservers fixes the problem.
Symptoms
When the domain's wildcard setting is on, urbestack-cert-issue returns one of these errors.
{"error":"No zone on this server holds example.com; a DNS validation needs one","ok":false,"status":400}{"error":"The public nameservers for example.com are not this server, so the CA would not see the validation record","ok":false,"status":400}Cause
Let's Encrypt validates wildcard names only over DNS. It looks for a TXT record under _acme-challenge.example.com.
UrbeStack publishes that record in the domain's zone on this server and removes it after validation. If another host serves the domain's public DNS, Let's Encrypt cannot see the record.
Resolution
At the registrar, set the domain's nameservers to this server's nameservers. Run
dig +short NS example.com @127.0.0.1to see which nameservers to use.You can also turn off the wildcard. Validation then uses HTTP for the site's names.
urbestack-domain-set --name example.com --wildcard offRequest the certificate again with
urbestack-cert-issue --name example.com.