Example
example.com. CAA 0 issue "letsencrypt.org"
example.com. CAA 0 issue "pki.goog"
example.com. CAA 0 issuewild ";"
example.com. CAA 0 iodef "mailto:security@example.com"
This allows Let’s Encrypt and Google Trust Services, forbids wildcard certificates from anyone (issuewild ";"), and asks CAs to report refused requests to the given address.
Tags
- issue: a CA that may issue normal certificates.
- issuewild: a CA that may issue wildcard certificates. If absent,
issueapplies to wildcards too. - iodef: where CAs report requests they refused.
A flag of 128 marks a tag as critical. A CA that does not understand a critical tag must refuse to issue, so only use it with tags you know your CA supports.
Questions
Do I need CAA records?
They are optional. Without them, any public CA may issue for your domain. With them, a CA that is not listed must refuse, which limits the damage if an attacker tries to get a certificate elsewhere.
My certificate renewal fails with a CAA error. Why?
The CA you use is not listed. Add an issue record for it (for example 0 issue "letsencrypt.org"), or remove the CAA records.
Do CAA records on example.com apply to www.example.com?
Yes. A CA looks for CAA at the exact name first and then walks up toward the root, using the first set it finds.