Skip to content

CAA issuewild: why a wildcard certificate is refused

A CA listed under issue can still be refused *.example.com, because a single CAA issuewild line overrides every issue line for wildcards. Find the line that refused you and publish the record that lets the order through.

Offensly Team··4 min read

Your certificate for www.example.com renews without trouble. You add *.example.com to the same order and Let's Encrypt answers CAA record for *.example.com prevents issuance. The usual culprit is the CAA issuewild property: for a wildcard request, one issuewild line at the relevant name makes the CA ignore every issue line there (RFC 8659, section 4.3). A record set that plainly lists your CA can still refuse it.

In AWS Certificate Manager the same refusal reads One or more domain names have failed validation due to a Certification Authority Authorization (CAA) error (AWS docs), with CAA_ERROR as the failure reason in the API.

Find the one CAA set your wildcard is judged by

For *.X, the lookup starts at X, climbs toward the root and stops at the first name that has CAA records (RFC 8659, section 3). So for *.app.example.com, query in this order:

$ dig CAA app.example.com +short

$ dig CAA example.com +short
0 issue "letsencrypt.org"
0 issuewild "digicert.com"

The empty first answer means app.example.com inherits. The second answer is the set that counts, and nothing above it matters. Read it as two separate permissions: Let's Encrypt may issue app.example.com, but only DigiCert may issue *.app.example.com.

If a name on the way up is a CNAME, dig follows it, and CAA records on the target apply as well.

A SERVFAIL from dig, or SERVFAIL looking up CAA from the CA, is not a permissions problem. Let's Encrypt says it most often means DNSSEC validation failed, so start with the DS record at the parent instead of editing CAA.

"CAA record for *.example.com prevents issuance": which line did it

Compare what dig returned with these cases.

dig showsWhy the wildcard is refusedFix
issuewild "digicert.com", your CA only under issueissuewild overrides issue for wildcardsAdd issuewild for your CA, or delete the line
issuewild ";"Someone blocked wildcards on purposeFind out why, then replace it
No issuewild, your CA missing from issueissue also governs wildcardsAdd your CA to issue
issuewild "letsencrypt.org; validationmethods=dns01"The method name needs its hyphenChange it to dns-01
issuewild "letsencrypt.org; validationmethods=http-01"HTTP-01 cannot issue wildcardsChange it to dns-01
issuewild "letsencrypt.org; accounturi=..."The order came from a different ACME accountIssue from the pinned account or correct the URI

The last three look like your CA is allowed, which is why they take longest to spot. The CA name matches; the parameter after the semicolon is what fails.

Write the CAA issuewild record you actually need

If wildcards and hostnames come from the same CA, delete the issuewild line. Without it, issue already covers wildcards, and Let's Encrypt says plainly you only need issuewild for different wildcard permissions. One line fewer is one line that cannot drift out of sync.

A different CA for wildcards takes one line each:

example.com.  3600  CAA  0 issue "letsencrypt.org"
example.com.  3600  CAA  0 issuewild "amazon.com"

If you never use wildcards, block them. The values for other CAs are in our list of which CAs to allow.

example.com.  3600  CAA  0 issue "letsencrypt.org"
example.com.  3600  CAA  0 issuewild ";"

A certificate naming both example.com and *.example.com has to clear both checks: issue for the first name, issuewild for the second.

Three edits tend to make this worse. Publishing issuewild alone to lock a domain down restricts wildcards and leaves every non-wildcard name open to any CA, as the RFC's wild3.example.com example shows; add an issue line too. Creating a CAA record named *.example.com does nothing for a wildcard order, because the CA looks at example.com. And editing the parent to fix a subdomain fails when app.example.com has its own CAA set, since the parent's lines never reach it.

Leave iodef lines alone: they grant and refuse nothing. Certificates already issued keep working after the change, because CAs check at issuance.

Change it in Cloudflare or Route 53

Cloudflare. On the DNS Records page select Add record, set Type to CAA, enter the name, choose the wildcard option under Tag, put the CA in CA domain name and select Save. One record per CA. On a zone with Universal SSL, Cloudflare adds its own issue and issuewild lines for the CAs it uses as soon as any CAA record exists, and the dashboard does not show them. Authorizations are additive, so your issuewild ";" does not stop those CAs. Trust dig, not the panel.

Route 53. Open the hosted zone and edit the existing CAA record for that name instead of creating a second one. Enter each value on its own line, for example 0 issuewild "letsencrypt.org" (AWS docs).

If you rarely touch the zone, the guide to adding DNS records shows where these forms sit.

Re-run the order, not only the lookup

The CA's resolver can hold the old answer until the record's TTL runs out, so wait that long after the change. Confirm with dig CAA example.com +short, then add --dry-run to the certbot command that failed. It goes through the Let's Encrypt staging CA and runs the CAA check again, so a bad record fails there without touching the live certificate.

ACM offers no retry on a failed request. Once the records are right, request a new certificate.

One wildcard, many hostnames behind it

A refused wildcard renewal does not hurt one site. Every hostname on that certificate shows a browser warning on the day it expires, while single-name certificates on the same domain renew as usual. The fix is one or two DNS lines and needs no downtime.

CAA is part of the advanced DNS check, which is free with an Offensly account on a domain you have verified.

Check the CAA records on your domain

Check your own domain in seconds

The free check reads your SPF, DKIM, DMARC and MX records and tells you exactly what to fix. No sign-up.