NDN...GEN(1)
β¨ 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--keyidis 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 π
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
- nixos 26.05: ndn-cxx 0.9.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms