Project

General

Profile

Feature #5043

ndnsec export: export non-default key

Added by Junxiao Shi 7 months ago. Updated 9 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tools
Target version:
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
#1

Updated by Junxiao Shi 7 months ago

  • Description updated (diff)
#2

Updated by Junxiao Shi 18 days ago

  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • % Done changed from 0 to 70

https://gerrit.named-data.net/c/ndn-cxx/+/6066

There was a TODO:

TODO: export all certificates, selected key pair, selected certificate

I have implemented "selected key pair" and "selected certificate" options in this Change.
For "all certificates", it involves changing the SafeBag format, and is separated to #5111.

#3

Updated by Davide Pesavento 9 days ago

anything else to do here?

#4

Updated by Junxiao Shi 9 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 70 to 100

Also available in: Atom PDF