trustyourinbox

Free DKIM generator. Made in your browser. Never sent to us.

Choose a selector and a key size. Your browser makes an RSA keypair: the public half goes in DNS, and the private half goes where your mail is signed.

Key size

The default. RFC 8301 recommends at least 2048 bits for signing.

Public key record

Not made yet
Value, once you generatev=DKIM1; k=rsa; p=

Generate to fill in the public key. The private key appears under it, on this page only.

Host
mail._domainkey.yourdomain.com
Type
TXT

Your keypair, part by part. Read it before you publish.

What each part of the public record says, where it goes, and where the private key goes.

Public key recordmail._domainkey.yourdomain.com

Not made yet
v=DKIM1DKIM, version 1Comes first, so receivers know the record is a DKIM key.
k=rsaKey type: RSAThe type every DKIM verifier must support.
p=The public keyFills in when you generate.
mail._domainkeyWhere it goesThe selector, then _domainkey, then your domain. Each signature names its selector, so receivers know which key to fetch.
PKCS#8 PEMThe private keyNever in DNS. It stays with you and goes where your mail is signed.Secret

Install it

3 steps
  1. Add one TXT record at mail._domainkey.yourdomain.com with the public value.
  2. Install the private key in your mail server or sending service, and set its selector to mail.
  3. Once DNS has the record, run the DKIM verifier to confirm the key is published.

Two halves. One stays with you.

DKIM signs your mail with a private key and lets receivers check the signature with the public one.

Published

The public key mail._domainkey.yourdomain.com

A TXT record in DNS. Anyone can read it, and that is the point: receivers fetch it to check each signature.

Kept

The private key PKCS#8 PEM

Made in this browser tab and shown once. Copy or download it before you leave, then install it where your mail is signed.

Named

The selector s=mail

Names the key, so one domain can publish several. A new selector lets you swap keys without a gap.

Questions. Short answers.

What the keys are, where they go, and what this page does with them.

Is the private key sent to you?

No. Your browser makes the keypair with the Web Crypto API, and the private key stays on this page. Reload and it is gone, so copy or download it first.

2048 or 1024 bits?

2048, the default. RFC 8301 recommends at least 2048 bits for signing. Use 1024 only if your DNS host cannot store the longer record, even in parts. Why 1024-bit DKIM keys are being phased out

What is a selector?

A name for the key. Receivers find the public key at selector._domainkey.yourdomain.com, using the s= tag in each signature. What is a DKIM selector?

My DNS host says the record is too long.

A 2048-bit record is longer than 255 characters, the most one DNS string holds. Most DNS hosts split it for you. If yours does not, copy the version in quoted parts: the same value, split into strings of 255 or fewer.

Where does the private key go?

Into whatever signs your mail: your own mail server, or the DKIM settings of a sending service, under the same selector. Many hosted services make their keys for you. If yours does, use theirs.

Can I make an Ed25519 key?

Not here. This tool makes RSA keys only, the type every DKIM verifier must support.

A key is half the job. The reports show it signing.

Once the record is live, monitoring reads your DMARC reports and shows which of your senders pass DKIM.