Feature #5043
Updated by Junxiao Shi about 5 years ago
Currently, `ndnsec export` command can only export the default key of an identity. Since multiple keys can associate with an identity, it's useful to be able to ``` $ ndnsec export non-default keys without first making them default. To realize this feature, `ndnsec export` should accept an optional `-k` flag, to interpret the name as a key name instead of an identity name. -h This design is consistent with `ndnsec cert-dump` command. ``` Usage: ndnsec export [-h] [-o FILE] [-P PASSPHRASE] [-i|-k] NAME [-i] IDENTITY Options: -h [ --help ] produce help message -i [ --identity ] arg interpret NAME as an name of the identity name, this is the default to export -k [ --key ] arg interpret NAME as a key name -o [ --output ] arg (=-) output file, '-' for stdout (the default) -P [ --password ] arg passphrase, will prompt if empty or not specified ``` Since multiple keys can associate with an identity, it's useful to be able to export non-default keys without first setting them. To realize this feature, `ndnsec export` should accept an optional `-k` flag, to interpret the name as a key name instead of an identity name. This design is consistent with `ndnsec cert-dump` command.