ND...ORT(1)

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

πŸŽ€ 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 Β© 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