RFC 6698: DANE: Binding TLS keys via DNSSEC

Summary

In August 2012, Paul Hoffman and Jakob Schlyter described DANE in RFC 6698, a scheme with which a domain operator specifies in DNSSEC-secured DNS which certificates or keys apply to their TLS services. For this it introduces the record type TLSA, which sits under names such as _443._tcp.www.example.com. DANE has caught on mainly between mail servers, while browsers never adopted it.

Four ways to express trust

A TLSA record names a usage mode, which part of the certificate is meant and how it is compared. Modes 0 and 1 constrain the public certificate infrastructure: a certificate must additionally match a particular CA or be exactly this certificate. Modes 2 and 3 replace it: the domain operator names their own trust anchor or the server certificate directly.

In 2014 RFC 7218 gave the modes short names such as PKIX-TA, PKIX-EE, DANE-TA and DANE-EE. Without valid DNSSEC, TLSA records are worthless, because an attacker could otherwise forge them.

Mail servers instead of browsers

Between mail servers DANE solves a real problem: an on-path attacker can suppress STARTTLS, and there is no reliable list of which servers must speak TLS. In 2015 RFC 7672 described how SMTP servers use DANE to recognise that their peer must offer TLS with a particular certificate.

Browsers, on the other hand, continued to rely on public certificate authorities, supplemented by Certificate Transparency. In 2015 RFC 7671 clarified the rules for operation, for example during certificate rollovers.

Ideas

  • TLSA records bind certificates to services in DNS.
  • The name contains port and transport, for example _25._tcp.
  • DNSSEC protects the origin of TLSA records.
  • Modes 0 and 1 constrain public CAs.
  • Modes 2 and 3 replace public CAs with the operator’s own data.
  • Between mail servers, DANE prevents STARTTLS downgrade.

Insights

  • DANE moves trust into the DNS hierarchy and makes the domain operator the authority for their own certificates.
  • A security scheme catches on where it solves a concrete problem without a better alternative, here in mail transfer.

Facts

  • RFC 6698 appeared in August 2012.
  • The record type is called TLSA.
  • RFC 7218 from April 2014 introduced the short names of the usage modes.
  • RFC 7672 from October 2015 describes DANE for SMTP.

References

Remarks

  • With mode 3 a server can also use a self-signed certificate whose authenticity is then secured solely through DNSSEC.

Recommendations

  • For your own mail servers, publish TLSA records with mode 3 1 1 or 2 1 1, provided the zone is signed with DNSSEC.
  • During certificate rollovers, publish the new TLSA record before the switch and remove the old one only afterwards.
  • Check the DANE configuration with tools such as the Internet.nl DANE test or posttls-finger.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.