ND...ORT(1)
π NAME π
ndnsec-export β export an NDN certificate and its private key to a file. Bestie, this is the ndnsec-export page from the ND...ORT(1) manual, and itβs giving βmove your cert + private key into a fileβ energy π
.
β¨ SYNOPSIS β¨
ndnsec export [-h] [-o file] [-P passphrase] [-i|-k|-c] name
Tiny note: -h is in the synopsis, but this page doesnβt give it its own extra OPTIONS blurb, so Iβm not inventing extra lore for it π«Ά.
π₯ DESCRIPTION π₯
So: export a certificate from the local Public Information Base (PIB), plus its private key, into a file in SafeBag format. The command will interactively ask for a passphrase to be used for encrypting the private key π.
The resulting file can be later imported using ndnsec-import. Cute, right? Thatβs the whole loop.
π OPTIONS π
-i,--identityβ Interpret name as an identity name. The default certificate of the identity will be exported. This is the default unless-k <# cmdoption-k>or-c <# cmdoption-c>is specified.-k,--keyβ Interpret name as a key name. The default certificate of the key will be exported.-c,--certβ Interpret name as a certificate name.-o <file>,--output <file>β Write to the specified output file instead of the standard output.-P <passphrase>,--password <passphrase>β Passphrase to use for encryption. If empty or not specified, the user is interactively asked to type the passphrase on the terminal.
β οΈ Also, specifying the passphrase via this option is insecure: it can potentially end up in the shellβs history, be visible in ps output, and so on. No cap, keep that in mind.
π EXAMPLES π
Export an identityβs default certificate and private key to a file:
$ ndnsec export -o alice.ndnkey /ndn/test/alice
Export a specific certificate and its private key to the standard output:
$ ndnsec export -c /ndn/edu/ucla/alice/KEY/1%5D%A7g%90%B2%CF%AA/self/%FD%00%00%01r-%D3%DC%2A
π¦ SEE ALSO π¦
ndnsec-cert-dump(1), ndnsec-import(1).
π Copyright π
Copyright Β© 2013-2024 Regents of the University of California.
k bye bestie π β this page is from ndn-cxx: NDN C++ library with eXperimental eXtensions, version 0.9.0, dated 1980-01-01. Slay and stay encrypted β¨.
π¦ 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