Quick one for anyone managing a handful of domains. Most small sites we look at have no CAA record at all, which means any publicly trusted CA may issue a certificate for them.

A minimal setup if you only use Let’s Encrypt:

example.com.  CAA 0 issue "letsencrypt.org"
example.com.  CAA 0 issuewild ";"
example.com.  CAA 0 iodef "mailto:security@example.com"
  • issue lists the CAs allowed to issue normal certificates.
  • issuewild ";" forbids wildcard certificates entirely (drop it if you use them).
  • iodef tells a CA where to report a refused request (support varies).

Things that bite people:

  • CAA is inherited down the tree: a record on example.com applies to www and api unless they have their own.
  • If you use a CDN or managed TLS (Cloudflare, AWS, etc.), add their CAs too, or renewals will fail silently until expiry.
  • Check with dig CAA example.com and test a renewal before relying on it.

Longer write-up with provider-specific notes: https://dev.to/attackscout/caa-records-stop-any-ca-from-issuing-certificates-for-your-domain-kjk

Happy to answer questions about edge cases.

  • cron@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    9 hours ago

    Just an addition: This prevents a compromised CA that is not on your list from issuing certificates for your domains.

    That’s not a common issue, but the cost for adding a CAA is low, so I’d recommend it anyways.