blob: 839e38155f9bc169827c3c197058a1162ecd6da4 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-export
2=============
3
4``ndnsec-export`` is a tool to export an identity's security data
5
6Usage
7-----
8
9::
10
11 $ ndnsec-export [-h] [-o output] [-p] identity
12
13Description
14-----------
15
16``ndnsec-export`` can export public data of the ``identity`` including default key/certificate.
17``ndnsec-export`` can also export sensitive data (such as private key), but the sensitive data will
18be encrypted. The exported identity can be imported again using ``ndnsec-import``.
19
20By default, the command will write exported data to standard output.
21
22Options
23-------
24
25``-o output``
26 Output the exported data to a file pointed by ``output``.
27
28``-p``
29 Export private key of the identity. A password will be asked for data encryption.
30
31Examples
32--------
33
34Export an identity's security data including private key and store the security data in a file:
35
36::
37
38 $ ndnsec-export -o id.info -p /ndn/test/alice
39
40Export an identity's security data without private key and write it to standard output:
41
42::
43
44 $ ndnsec-export /ndn/test/alice