Skip to main content
KalkuNet

DKIM Generator — RSA Key Pair and _domainkey TXT Record

Generate RSA/TXT selector._domainkey DNS record formatting cleanly.

Runs in your browserWeb · Email, DNS & Web Media

The key is made in your browser with Web Crypto and is never sent to a server.

When to use the DKIM Key Pair & _domainkey TXT Record Generator

  • Keys made in your browser

    The RSA key pair is created by Web Crypto from your device's cryptographic random generator. The private key is never sent to any server.

  • A record that truly matches

    The p= value in the record is the public half of the same private key. Our tests sign a message with the private key and verify it with the key from the record.

  • Safe from the 255-character limit

    A 2048-bit key is longer than one TXT string allows, so the record is split into several quoted strings that DNS joins back together.

  • Selectors for key rotation

    A selector such as mail2026 lets several keys exist at once, so a new key can go live before the old one is removed without any mail failing verification.

Frequently asked questions

Which key length is recommended?

2048 bits. 1024-bit keys are considered weak, while 4096 bits is not supported by every receiver and often exceeds DNS panel limits.

What does t=y mean?

Testing mode: receivers must not treat mail worse just because DKIM fails. Remove it once signatures verify correctly.

Where does the private key go?

On the sending server only, for example /etc/opendkim/keys/ readable only by the DKIM service. Never keep it in a repository or send it by e-mail.

How often should the key be rotated?

Common practice is every 6 to 12 months, or at once after a server compromise. Publish the new key under a new selector, wait for the TTL, then remove the old one.

Learn more