DKIM key generator
Creates a 2048-bit DKIM key pair in your browser and gives you the DNS record to publish. The private key never leaves your device.
Next
What the DKIM key generator does
It creates an RSA key pair in your browser with the Web Crypto API and writes the DNS record for the public key. The private key never leaves your device. Nothing is sent to a server, and Ken never sees it.
Choose a selector and a key length. 2048 bits is the default and the length RFC 8301 recommends. You get the private key in PEM format and a TXT record for selector._domainkey.yourdomain.com containing v=DKIM1, k=rsa and p= with the public key.
When you need your own key
Hosted providers make their own keys. In Google Workspace you generate the key in the Admin console under Gmail, Authenticate email. Microsoft 365 hosts the keys itself and asks you to add two CNAME records. Use those flows when you can.
Generate your own key when you run the signing server: Postfix with OpenDKIM, an SMTP relay that asks for your key, or a self-hosted app. The server signs with the private key and DNS holds the public half.
How to install the key
- Publish the TXT record first and wait until it resolves. Check it with the DKIM checker.
- Load the private key into your server or tool and set the same selector and signing domain.
- Send a test message and look for dkim=pass in the Authentication-Results header.
- Store the private key like a password. Anyone who has it can sign mail as your domain.
A 2048-bit public key is longer than 255 characters, so it goes in as several strings inside one TXT record. Most DNS panels split it for you.
Why it matters for cold email
If you send from your own SMTP servers, signing with your own domain is what makes DMARC pass. Use a separate selector per server or tool, so one key can be revoked without touching the others.
Rotate keys on a schedule. Publish a new selector, switch signing to it, and leave the old record up for a week or so, so messages still in transit verify. Then empty the old record's p= value to revoke it.