Problem with wildcard cert using dns-01 challenge

My domain is:

I am trying to generate a wildcard cert to apply to my webmin installs on
my virtual servers, as "" ""

I ran "certbot certonly --manual -d * --agree-tos --preferred-challenges=dns-01 -m --server"

I recieved the info "" text record, with a long string to be copied into a text record on the NameCheap webpage for my
domain. I created a txt record, with the "" in the
field Namecheap calls "host" and the long string in the field marked "value"
and saved with a ttl of 1 minute. When I add a host with a ttl of 1 minute, I'm
able to ping that host in little more than a minute. I've waited up to an hour
for that txt record to propagate, while leaving the certbot at the "press any key to
continue". I've used the dns txt record check at MXToolbox to verify that the
txt record had propagated, but all I see is my spf txt record for mail. Am I doing
something wrong OR is there a problem with NameCheap's txt record handling?
I've tried this several times over the past few months and never get the txt record propagated..

1 Like

Hello @dfrandin,

In that host field use only _acme-challenge instead of because you are creating the record

$ dig txt                                                                                                      

; <<>> DiG 9.16.1-Ubuntu <<>> txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59371
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 1232

;; ANSWER SECTION: 54 IN TXT "lHnLxRKApHUvggeaLa6QVC-9QFGk-s6c8lt-mJYOmbE"

;; Query time: 19 msec
;; WHEN: sáb feb 06 01:53:39 CET 2021
;; MSG SIZE  rcvd: 124



Thanks!! Removing the worked... The documentation doesn't make that clear....


I think a best practice in a web-based zone editor is to have a label with the domain next to the input field, so that users can easily see that it will be automatically appended to the subdomain that they enter.

The idea of auto-appending the domain to the record name goes back (at least) to zone files in BIND in the 1990s—if not longer—and people often find it helpful, but also often find it confusing. It's hard to know how to communicate this in a program like Certbot, because the actual procedure for creating DNS records could vary so widely. has a check for this specific issue. :slight_smile:

I've thought of proposing that Let's Encrypt itself should check for this, but I have a feeling that it could be very tricky to incorporate into the existing validation logic, in the sense that the number of states that a verification could be in at a particular moment (in different parts of the validation system) could expand a lot, and it might end up consuming a lot of extra resources on the CA side as well.

1 Like

If users are copy-pasting the domain, it could help to add a trailing period to the prompt in the manual plugin:

Please deploy a DNS TXT record under the name with the following value:

There's at least a couple of zone editors I've used that will do the right thing if you include the trailing period, but won't if you don't.

More generally I would really love if it was possible to do away with users having to go through this process. I plead for a more pragmatic DNS validation method :laughing: .

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.