Generate a cryptographic 2048-bit or 1024-bit RSA keypair directly in your browser using the native Web Crypto API. Copy your ready-to-publish v=DKIM1 DNS TXT record and download your PEM private key for Postfix, OpenDKIM, Exim, or Haraka.
mail2026._domainkey.example.com · Type: TXTGenerating 2048-bit RSA keypair...
Generating a production-grade 2048-bit RSA DKIM key pair requires formatting the public key for DNS TXT publication (selector._domainkey.yourdomain.com) while keeping the matching PKCS#8 / PEM private key confidential inside your mail transfer agent (Postfix, OpenDKIM, Exim, Stalwart, Haraka, or Postal). Because standard DNS UDP packets and many cloud DNS dashboards (Route53, Cloudflare, GoDaddy, cPanel) enforce a 255-character limit per quoted TXT string, a 2048-bit Base64 public key (~392 characters) must be split into two adjacent quoted chunks.
Our interactive DKIM Generator produces both the single-line TXT value (for providers like Cloudflare that auto-split long TXT records) and the pre-split RFC 4408 / RFC 6376 multi-string format ("v=DKIM1; k=rsa; p=MIIBIjANBg..." "...IDAQAB") so your DNS zone compiles without syntax errors or truncated public keys. After publishing your generated 2048-bit RSA public key to your authoritative DNS zone under <selector>._domainkey.yourdomain.com, configure your mail transfer agent or ESP to sign outbound messages with the corresponding private key covering at minimum the From, To, Subject, Date, and Message-ID headers, and verify live DNS propagation immediately using our DKIM Checker tool.
| DKIM Tag / Parameter | RFC 6376 Specification & Value | Operational Security Purpose |
|---|---|---|
| v=DKIM1 | Mandatory version tag (must appear first in TXT record) | Identifies the TXT record as a valid DomainKeys Identified Mail key |
| k=rsa (or k=ed25519) | Key algorithm identifier (2048-bit RSA recommended) | Protects against factorable 512/768-bit legacy key compromise |
| p=<base64_public_key> | ASN.1 SubjectPublicKeyInfo encoded in Base64 | Used by Gmail/Yahoo/Outlook to verify the b= signature in message headers |
| t=s (optional strict flag) | Disallows subdomain signing when i= does not match d= | Prevents unauthorized third-party subdomains from reusing the key |