What is strong enough
- RSA 2048 bit or more: good.
- RSA 1024 bit: weak, replace the key.
- Below 1024 bit: not accepted by Gmail and Outlook.
- Ed25519: strong, but not all receivers support it yet.
How to use the check
- Enter the domain and the selector from s= in DKIM-Signature.
- Without a selector we try selector1, selector2, google, default, k1, s1, s2, dkim and mail.
- For each key you see the type, length, any CNAME and the tags t= and h=.
Why the length is not in the record
The DKIM record has no tag for length. The length is inside the key itself in p=, which is encoded in base64. The check decodes the key and reads the length from there, so the answer is exact.
How to switch to a stronger key
At Microsoft 365, Google and most services you replace the key in the admin panel, and the service creates the new one itself. If you have your own mail server, you create a new key pair with the DKIM generator under a new selector.