CAA: DNS Certification Authority Authorization

I really like the kind of security features that are easy to use. The CAA “DNS Certification Authority Authorization” is one of those. As a domain administrator you must only generate the appropriate CAA records and you’re done. (Unlike other security features such as HPKP that requires deep and careful planning or DANE which is not used widely.) Since the check of CAA records is mandatory for CAs since 8. September 2017, the usage of those records is quite useful because it adds another layer of security.

(This blogpost is part of a series about DNSSEC. Refer to this structured list for all articles.)

What is CAA? In short: “CAA allows domain owners to define in a DNS record which certificate authorities are allowed to issue certificates for them“, Bulletproof TLS Newsletter #32. Hence none of your service operators is able to generate/buy a certificate at a CA that is not authorized for that name. This is useful if your company has lots of different web servers, websites, security appliances, etc., that are using TLS certificates and are managed by different persons. With CAA you can control the usage of the CAs which are allowed to sign those certificates/CSRs.

Note that the “Use of DNSSEC to authenticate CAA RRs is strongly RECOMMENDED but not
required”, RFC 6844, section 4.1. From a security perspective you should definitely use DNSSEC to have an authentic query/answer from the CAs to your DNS server.

Generate CAA Records

I added the CAA records for my test domain weberdns.de. I used the CAA Record Helper to generate them. Currently I am only using Let’s Encrypt for my domains while no wildcard certificates. Hence my CAA records are the following:

A test query with dig shows the records and the DNSSEC signature (“ad” flag at line 7 and RRSIG at line 18):

Online Tests

Via the online DNS CAA Tester you can verify your records via an external service. In my example this looks like this:

Furthermore, the well-known SSL Server Test by SSL Labs also investigates the CAA records such as shown here:

Note that I have not tested any possible certificate authority whether they correctly check the CAA records. Of course not. Way too many. ;) However, this has been done by other security researchers. Hopefully they will continue discovering unreliable CAs.

Featured image “Boss on the Beach” by Adrian Scottow is licensed under CC BY-SA 2.0.

One thought on “CAA: DNS Certification Authority Authorization

  1. I tested for Let’s Encrypt and they do check CAAs. With a CAA for another CA, Let’s Encrypt rejects your request with:

    urn:acme:error:caa “CAA record for DOMAIN_NAME prevents issuance”

Leave a Reply

Your email address will not be published. Required fields are marked *