NDN...GEN(1)

πŸ“¦
version 0.9.0 Β· 2 versions
, in nixos 26.05

✨ ndnsec-key-gen β€” generate an NDN key for an identity ✨

okay bestie so this little icon lives in the ndn-cxx: NDN C++ library with eXperimental eXtensions manual, and honestly? it's giving "make me a keypair, queen." πŸŽ€


🌸 SYNOPSIS 🌸

ndnsec key-gen [-h] [-n] [-t type] [-k keyidtype|--keyid keyid] identity

πŸ’– DESCRIPTION πŸ’–

So basically: ndnsec key-gen generates a public/private key pair for the identity you name, and then sets that shiny new public key as the identity's default key. Slay. πŸ”₯

And unless you pass -n, the identity also gets set as your default identity β€” like, the main character identity, the one the toolchain reaches for first. 🫢

Oh and also β€” and this is the part people forget β€” this command automatically creates a signing request for the generated key. That signing request gets written to standard output in Base64 encoding. So don't be surprised when your terminal starts spitting out a wall of letters, that's just the vibe check passing. 😭

πŸ’… OPTIONS πŸ’…

  • -n, --not-default β€” babe, do NOT set this identity as the user's default identity. that's it, that's the flag.
⚠️ ngl this one's a little spicy: if no other identity/key/certificate exists, then the identity will become the default regardless of this option. the tool literally has no other choice. πŸ™ˆ
  • -t <type>, --type <type> β€” type of key to generate. "r" for RSA, "e" for ECDSA, and ECDSA is the default, so if you say nothing you get ECDSA. ✨
  • -k <keyidtype>, --keyid-type <keyidtype> β€” type of KeyId for the generated key. "r" for a 64-bit random number (this is the default unless --keyid is specified), "h" for the SHA-256 of the public key. pick your fighter. πŸ¦‹
  • --keyid <keyid> β€” you, a user with opinions, specify the KeyId yourself. it must be a non-empty generic name component. non-negotiable bestie. πŸ’€

πŸ‘‘ EXAMPLES πŸ‘‘

generate a new default key for the identity /ndn/test/david β€” look how easy:

$ ndnsec key-gen /ndn/test/david
Bv0BNwcxCANuZG4IBHRlc3QIBWRhdmlkCANLRVkICLe4LjaLILlwCARzZWxmNggA
AAGQQSVMERQJGAECGQQANu6AFVswWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAASc
RppJ1qQzCpTyjvsX33fW9/WxopTdoEwfMZENOC960YB7g/LMhWx10ws4benYxIO2
ELirW0NZ6Wu5VUuzfyjfFlIbAQMcIwchCANuZG4IBHRlc3QIBWRhdmlkCANLRVkI
CLe4LjaLILlw/QD9Jv0A/g8yMDI0MDYyMlQxODExMjH9AP8PMjA0NDA2MTdUMTgx
MTIxF0YwRAIgLJWFpcWrmaOuXW5W+im9al+7TinaEqodve+vrJ2VE5sCIHyrWB+5
g2bl11aVNycEnMvG8KRSJoHRvNkx7+6RV33s

(that big blob is the Base64 signing request btw, it's supposed to look like that πŸ’œ)


🌈 SEE ALSO 🌈

both icons, both worth a read, iykyk πŸ’–


Copyright Β© 2013-2024 Regents of the University of California.


okay that's the whole page, periodt. πŸ’… this was ndn-cxx version 0.9.0, dated 1980-01-01, which is genuinely the funniest date possible and i love her for it. mwah, go generate some keys bestie βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from