Actions
Feature #5043
closedndnsec export: export non-default key
Start date:
Due date:
% Done:
100%
Estimated time:
3.00 h
Description
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 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.
This design is consistent with ndnsec cert-dump
command.
Usage: ndnsec export [-h] [-o FILE] [-P PASSPHRASE] [-i|-k] NAME
Options:
-h [ --help ] produce help message
-i [ --identity ] arg interpret NAME as an identity name, this is the default
-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
Actions