DANE TLSA Record Generator

Turn a certificate chain into correct TLSA records for SMTP, HTTPS or any port, check existing records against a chain, and plan key rollovers without outages.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose the service

    Pick a preset such as SMTP 25 or HTTPS 443 and enter the host name and TTL.

  2. 2
    Paste the chain

    Open or paste fullchain.pem or a public key.

  3. 3
    Set parameters

    Choose usage, selector and matching type and read the advice.

  4. 4
    Copy the record

    Take the zone file line, nsupdate command or panel values.

  5. 5
    Plan rollovers

    Paste the next certificate and publish both records ahead of the switch.

  6. 6
    Verify

    Paste live records into the check tab and run the dig and openssl commands.

About this tool

DANE lets a domain owner publish, in DNS secured with DNSSEC, exactly which certificate or key a service must present. Mail servers use it most: when a sending server finds a TLSA record for your MX host, it insists on an encrypted connection that matches the record, which defeats downgrade and fake-certificate attacks. Large operators such as Microsoft Exchange Online, Comcast and many European providers check DANE on outbound mail. A TLSA record has four parts: certificate usage, selector, matching type and the data, which is usually a SHA-256 hash. Getting the hash from the wrong part of the certificate, or forgetting the record during a key change, makes mail delivery fail. This generator reads a certificate chain or a bare public key, lets you choose the parameters with plain explanations, and outputs the record in zone file, nsupdate and DNS panel form, together with dig and openssl commands to check it. A rollover tab writes the records for the current and the next key side by side.

Choosing parameters

Usage 3 (DANE-EE) pins the server's own certificate or key and ignores names and expiry dates; it is the usual choice. Usage 2 (DANE-TA) pins a CA in your chain, which suits setups where certificates are renewed often from the same issuer; the server must then send that CA certificate in its chain. Usages 0 and 1 also require normal public CA validation, and RFC 7672 says SMTP senders treat them as unusable, so the tool raises an error when you pick them for ports 25, 465 or 587. Selector 1 hashes only the public key, so a renewal that reuses the key needs no DNS change; selector 0 hashes the whole certificate. Matching type 1 is SHA-256, the recommended form; 2 is SHA-512 and 0 publishes the raw bytes.

Rollover without outages

Generate the next key before the switch and paste its certificate or public key in the rollover tab. Publish both records, wait at least twice the TTL so resolvers see both, move the server to the new key, test, then remove the old record. With 3 1 1 and a key that you keep across renewals, ordinary certificate renewals need no DNS work at all.

Checking existing records

Paste the records returned by dig or shown in your DNS panel. The tool recomputes each record against every certificate in the chain and marks which certificate it matches, or warns that none does, which is the situation that makes DANE senders refuse your mail.

Limits

The page cannot query DNS or check DNSSEC, because browsers have no DNS access; use dig +dnssec for that. TLSA records have no effect without a signed zone. The tool does not connect to your server to read its live certificate; paste the chain you deploy. It is not a DNS hosting service.

Worked example

For mail.example.com on port 25 with Let's Encrypt, the admin pastes fullchain.pem containing the server certificate and the R11 intermediate. With 3 1 1 the record is _25._tcp.mail.example.com. 3600 IN TLSA 3 1 1 followed by the 64-hex SHA-256 of the server's public key. A second record 2 1 1 for the intermediate is added as a backup, as many operators do. Before the next key change, the admin pastes the new certificate in the rollover tab, publishes both 3 1 1 records, waits two hours (two times a TTL of 3600), switches the server and removes the old record. The check tab confirms both live records match the new chain.

Quick facts

Frequently asked questions

Do I need DNSSEC for DANE?

Yes. Clients only trust TLSA records that validate through DNSSEC. Without a signed zone the records are ignored, so sign the zone first.

Which record should a mail server publish?

3 1 1 for the server key is the common recommendation. Many operators add 2 1 1 for their issuing CA as a backup that survives key changes, as long as the server always sends that CA in its chain.

Will Let's Encrypt renewals break DANE?

Not with selector 1 if you reuse the private key at renewal (certbot --reuse-key). If a new key is generated each time, publish the next key's record ahead of the renewal using the rollover tab.

What is the owner name format?

Underscore port, underscore protocol, then the host: _25._tcp.mail.example.com for SMTP or _443._tcp.www.example.com for HTTPS.

Can I use DANE for websites?

The record format works for HTTPS, but mainstream browsers do not check TLSA records. It is useful for mail, XMPP and controlled environments.

How do I test after publishing?

Run dig +dnssec TLSA with the owner name and look for the ad flag, then use the openssl s_client command shown by the tool to make a DANE-verified connection.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages