CAA records: stop any CA from issuing certificates for your domain
Any public certificate authority can, in principle, be asked to issue a certificate for your domain. A CAA (Certification Authority Authorization) record lets you say which ones are allowed. It is defined in RFC 8659 (wh
Any public certificate authority can, in principle, be asked to issue a certificate for your domain. A CAA (Certification Authority Authorization) record lets you say which ones are allowed. It is defined in RFC 8659 (which replaced RFC 6844), and since September 2017 the CA/Browser Forum Baseline Requirements oblige public CAs to check CAA before issuing.
Syntax
A CAA record has a flag, a tag and a value:
example.com. IN CAA 0 issue "letsencrypt.org"
example.com. IN CAA 0 issuewild ";"
example.com. IN CAA 0 iodef "mailto:[email protected]"
-
issue: which CA may issue certificates for the name (the value is the CA's identifier, found in its documentation). -
issuewild: same, but only for wildcard certificates. If absent,issueapplies to wildcards too. A value of";"forbids every CA. -
iodef: where a CA can report a request that violates your policy (amailto:or a URL). -
issue ";"alone means: no CA may issue.
The flag 0 is the usual value. Flag 128 marks the property as critical: a CA that does not understand the tag must refuse to issue.
How a CA reads it
The CA looks for CAA at the exact name, then climbs towards the root until it finds a record set: www.example.com, then example.com, then the TLD. The first set found applies. So one record on the apex covers all subdomains that do not have their own.
If you list several issue records, any one of those CAs may issue.
Check what you have
dig CAA example.com +short
dig CAA www.example.com +short
Empty output at every level means no restriction: every CA is allowed.
Choose the right value
Use the identifier given in each CA's documentation, for instance letsencrypt.org for Let's Encrypt. Your host or CDN may obtain certificates for you through its own CA, so before publishing a restrictive record, list where your certificates really come from, otherwise the next renewal fails. A wrong CAA record is a classic reason for a renewal that stops working.
RFC 8657 adds optional parameters to bind issuance to a specific ACME account (accounturi) and validation method (validationmethods); support depends on the CA, so read its documentation first.
Limits
- CAA is checked at issuance. It does not revoke or hide certificates that already exist.
- It only constrains CAs that follow the rules; it does not protect against a CA that is itself compromised or ignores the check.
- DNS answers should be authentic: signing your zone with DNSSEC makes it harder to tamper with the record a CA reads.
A free check
A free audit with no signup shows the certificates and DNS settings of a domain as seen from the Internet: https://attackscout.com/en?utm_source=devto&utm_medium=article&utm_campaign=caa-records
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.