blob: fb3c41fcd103b887a2da1be7b91d75ed68063603 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-export
2=============
3
Alexander Afanasyev151a8552014-04-11 00:54:43 -07004Usage
5-----
6
7::
8
Junxiao Shi476200b2017-10-05 12:16:27 +00009 $ ndnsec-export [-h] [-o output] identity
Alexander Afanasyev151a8552014-04-11 00:54:43 -070010
11Description
12-----------
13
Junxiao Shi476200b2017-10-05 12:16:27 +000014``ndnsec-export`` exports the default certificate of an identity and its private key as a file. It
15will ask for a passphrase to encrypt the private key. The output file can be imported again with
16``ndnsec-import`` command.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070017
18Options
19-------
20
Junxiao Shi476200b2017-10-05 12:16:27 +000021``-h``
22 Print a help message.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070023
Junxiao Shi476200b2017-10-05 12:16:27 +000024``-o output``
25 Write to an output file instead of the standard output.
26
27``identity``
28 The identity name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
30Examples
31--------
32
Junxiao Shi476200b2017-10-05 12:16:27 +000033Export an identity's default certificate and private key into a file:
Alexander Afanasyev151a8552014-04-11 00:54:43 -070034
35::
36
Junxiao Shi476200b2017-10-05 12:16:27 +000037 $ ndnsec-export -o alice.ndnkey /ndn/test/alice
Alexander Afanasyev151a8552014-04-11 00:54:43 -070038
Junxiao Shi476200b2017-10-05 12:16:27 +000039Export an identity's default certificate and private key to the standard output:
Alexander Afanasyev151a8552014-04-11 00:54:43 -070040
41::
42
43 $ ndnsec-export /ndn/test/alice