DNSVerdict

CAA records: which CAs may issue certificates for you

Published · Updated

A CAA (Certification Authority Authorization) record is a DNS record that names the certificate authorities (CAs) allowed to issue TLS certificates for a domain. Before issuing, a CA looks up the CAA records; if some exist and none names that CA, it must refuse. RFC 8659 defines the record. Add one issue record per CA you use, then confirm the result with the CAA check.

A minimal setup that allows one CA and asks for violation reports:

example.com.  3600  IN  CAA  0 issue "letsencrypt.org"
example.com.  3600  IN  CAA  0 iodef "mailto:security@example.com"

What a CAA record contains

Each record has three parts: a flags byte, a tag, and a value. RFC 8659 §4.1 defines the layout. The tags that matter in practice:

TagMeaningRFC 8659
issueAuthorizes a CA to issue certificates for the name (and, when no issuewild exists, for wildcards too)§4.2
issuewildAuthorizes a CA for wildcard certificates only; overrides issue for wildcards§4.3
iodefA mailto: or https: address where a CA may report a refused or suspicious request§4.4

The value of issue and issuewild is the CA’s identifying domain name, in quotes. A value of ";" (a semicolon) authorizes no CA at all:

nocerts.example.com.  CAA  0 issue ";"

Use that on names that must never get a certificate, and remember it blocks your own CA as well. The RFC’s own example puts an optional parameter after the domain, for instance "ca1.example.net; account=230123". Which parameters a CA honours is that CA’s decision; Let’s Encrypt documents accounturi and validationmethods, covered below.

The critical flag

The flags byte has one defined bit. RFC 8659 §4.1 says that if it is set to 1, the property is critical, and §4.5 explains the purpose: a CA that does not understand a critical property must not issue. A record such as CAA 128 tbs "Unknown" therefore stops every conforming CA that does not recognize tbs. Leave flags at 0 unless you have a reason to block unknown properties; AWS Certificate Manager’s documentation, for one, says to set it to 0.

Tree climbing: where the CA looks

A CA does not read CAA only at the exact name. RFC 8659 §3 describes the search: it starts at the requested name and climbs toward the root, one label at a time, until it finds a CAA record set, stopping before the root. So a certificate request for shop.eu.example.com checks that name, then eu.example.com, then example.com, then com. The first name that has any CAA record decides.

Two consequences. A record at example.com covers all subdomains that have no CAA of their own. And a subdomain that has its own CAA record set ignores the parent’s: if shop.example.com has a CAA record naming only CA B, CA A is refused there even though example.com authorizes it. Run the CAA check on the exact hostname you need a certificate for. The DNS lookup with type CAA shows the raw records per name.

Examples for common CAs

The identifying domain must come from each CA. These values are from their own documentation (see Sources).

CAissue valueSource note
Let’s Encryptletsencrypt.orgLet’s Encrypt CAA page
Google Trust Servicespki.googGoogle Cloud PKI FAQ
DigiCertdigicert.comCertCentral docs; issuemail for S/MIME
Sectigosectigo.com (also trust-provider.com, usertrust.com)Sectigo knowledge base
Amazon (ACM)amazon.com, amazontrust.com, awstrust.com or amazonaws.comACM user guide

A zone that allows Let’s Encrypt for normal names and Google Trust Services for wildcards:

example.com.  3600  IN  CAA  0 issue "letsencrypt.org"
example.com.  3600  IN  CAA  0 issuewild "pki.goog"

Because issuewild exists, wildcard requests are checked against it only; Let’s Encrypt is refused for *.example.com. If you want both CAs for wildcards, add both under issuewild.

Let’s Encrypt additionally documents restricting issuance to one ACME account with accounturi and to validation methods with validationmethods:

example.com.  3600  IN  CAA  0 issue "letsencrypt.org; validationmethods=dns-01"

AWS documents that for ACM, an issuewild record that omits an Amazon CA blocks ACM wildcards, and that ACM ignores iodef.

How to add and check a record

  1. List which CAs issue for you. Include the one behind your CDN, your hosting panel’s built-in certificates and any certificate monitoring service; each may use a different CA.
  2. Look at the current state with the CAA check and at the parent names too.
  3. Add the records at your DNS host. Not every host takes a CAA type in the same form, so check its panel; some want the flags, tag and value in separate fields and add the quotes themselves.
  4. Test a renewal in a staging or dry-run mode if the CA offers one, rather than waiting for the real expiry.
  5. If the zone is served by several name servers, use the NS lookup to confirm which ones answer, then verify they all return the same CAA records.

Trade-off: CAA narrows who can issue, but it does not stop an attacker who controls your DNS or your CA account, and a missing CA in the list breaks automatic renewals silently until the next attempt fails. Keep the list short but complete.

FAQ

Do I need a CAA record? No. If a name has no CAA record set anywhere up the tree, any publicly trusted CA may issue. A CAA record is an optional restriction. It reduces the risk of a mis-issuance by a CA you never use, at the cost of maintaining the list when you change providers.

My renewal failed with a CAA error. What do I check? Look up the CAA records for the exact hostname and each parent, since the first name with CAA wins. Confirm the CA’s identifying domain is in an issue record, or in issuewild for wildcards. Then confirm no stray record sits on a subdomain and overrides the parent.

Does CAA affect certificates that are already issued? No. CAA is checked by the CA at issuance time only, per RFC 8659. Browsers do not read it, so adding or removing a record leaves existing certificates valid until they expire or are revoked. The next renewal or new request is where a wrong list shows up, so test then.

Sources

Tools used

CAA Record CheckDNS LookupNS Lookup