dknewkey(1)
β¨ NAME β¨
okay so bestie, gather round π this is dknewkey, living its best life in section 1 of the General Commands Manual, and it generates new DKIM public/private key pairs. that's the whole job. no cap.
π VERSION π
0.8.0 β she's a specific girlie, and that's the version you're holding π
πΈ DESCRIPTION πΈ
so dknewykey generates new DKIM keys. (yes, that's how it's spelled in the source, we don't make the rules, we just report them π)
for RSA keys, it defaults to a 2048 bit key size β and that's controlled by the BITS_REQUIRED variable, so if you wanna change it, that's your knob, babe. ed25519 keys are built different: they do not have a variable size. that's just not a thing they do β¨
here's the tea on how each one gets made:
- for RSA keys, it uses
opensslto do the generation. by default it assumes that lives at/usr/bin/openssl, and that is controlled by theOPENSSL_BINARYvariable ποΈ - for ed25519 keys,
PyNaClis used β which ispython-naclin Debian and its derivatives π¦ - for RSA keys,
k=sha256is now included in the public DNS record, and the whole reason is to prevent inadvertent use with the now obsoletesha1hash algorithm. (see RFC 8301) π₯
like seriously, thatsha1thing is obsolete, we are not doing that anymore, thek=sha256is there to protect you from yourself π
π¦ USAGE π¦
dknewkey.py [-h] [--ktype {rsa,ed25519}] key_name
mandatory positional arguments:
key_nameβ the name of the key. you literally have to give this one, it's not optional, it's mandatory, she's required periodt π
optional arguments:
-h,--helpβ show this help message and exit. the classic. the icon. ask her for help and she will simply tell you things π«Ά--ktype {rsa,ed25519}β DKIM key type: Default isrsaπ
NOTE: depending on the packaging and distribution, the exact path and name for the executable may vary. so like, don't come for me if your binary is named something slightly different, that's a packaging thing, not a me thing π
π AUTHORS π
this version of dknewkey was written by Brandon Long <blong@google.com>. π
it has been substantially rewritten by Scott Kitterman <scott@kitterman.com>. β¨
this man-page was created by Scott Kitterman <scott@kitterman.com> and is licensed under the same terms as dkimpy. π
and that's the whole page bestie, no crumbs left π mwah π
signing off from 2018-02-05 β this is dknewkey(1), over and out, slay πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: python313-dkimpy 1.1.8-bp160.1.11 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms