DNS Lookup

What is a CAA record?

The record that limits which certificate authorities may issue SSL certificates for your domain.

A CAA (Certification Authority Authorization) record is a DNS record that sets which certificate authorities (CAs) may issue SSL/TLS certificates for your domain. If you only use Let's Encrypt, for example, you can stop every other CA from issuing certificates in your domain's name.

example.com.   3600   IN   CAA   0 issue "letsencrypt.org"

What does a CAA record do?

Since September 2017 every certificate authority must check a domain's CAA record before issuing a certificate. If they aren't listed, they must refuse.

This makes it harder for an attacker to exploit a weakness in some other CA's validation process to get a valid certificate for your domain. In large organisations it also stops different teams from getting certificates from different CAs without permission.

For a domain without a CAA record, any CA may issue certificates. So CAA isn't required; nothing breaks without it, you just don't get this extra protection.

Structure of a CAA record

Each CAA record has three parts: flag, tag and value.

TagMeaning
issueThis CA may issue regular certificates for the domain and its subdomains.
issuewildThis CA may issue wildcard certificates (*.example.com). If omitted, the issue rules apply to wildcards too.
iodefWhere the CA can send a notice when a request breaks the rules (mailto:security@example.com). Not every CA supports it.

The flag is almost always 0. The value 128 means "don't issue if you don't recognise this tag" and is only used in special cases.

CAA values for common certificate authorities

Certificate authorityValue
Let's Encryptletsencrypt.org
Google Trust Servicespki.goog
Sectigo (Comodo)sectigo.com
DigiCert (incl. RapidSSL, GeoTrust, Thawte)digicert.com
GlobalSignglobalsign.com
ZeroSSLsectigo.com (ZeroSSL certificates are issued by Sectigo)
Amazon (AWS Certificate Manager)amazon.com

If you use your hosting company's free SSL, you may not know which CA it comes from. Click the padlock in your browser and check the "Issued by" field of the current certificate. cPanel's AutoSSL mostly uses Sectigo or Let's Encrypt.

How do you add a CAA record?

An example that allows Let's Encrypt and Sectigo, leaves wildcards to Let's Encrypt only and sends violation reports to an address:

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

In most panels a CAA record has separate fields: @ for the name, 0 for the flag, issue for the tag and letsencrypt.org for the value. Some older panels don't support the CAA type at all; then you'd have to switch DNS providers or do without CAA.

CAA on subdomains

CAs look for a CAA record starting at the requested name and moving up. When a certificate is requested for shop.example.com, they check shop.example.com first and, if there's no record, example.com. So rules on the root domain also cover every subdomain without its own CAA record. If a subdomain is pointed at another service (a SaaS app, say) with a CNAME, remember to add the CA that service uses as well.

If you use Cloudflare

With Cloudflare's proxy (the orange cloud) on, the certificate shown to visitors is obtained by Cloudflare from its partner CAs. When you add a CAA record, Cloudflare automatically adds its own CAs so Universal SSL keeps working. These records may not show in the dashboard but do appear when you look the domain up.

Common mistakes

  • Leaving out the CA you actually use. The most common and sneakiest mistake: the current certificate keeps working, but a few months later the automatic renewal fails and the site starts showing a security warning.
  • Forgetting issuewild for wildcard certificates. If you only define issuewild and get your wildcard certificate from another CA, renewal is refused.
  • Putting https:// or a full URL in the value. The value is just the CA's domain: letsencrypt.org.
  • Trying to add CAA to a subdomain that is a CNAME. A name with a CNAME can't hold other records; the CA checks the CAA at the CNAME's target.