Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-export |
| 2 | ============= |
| 3 | |
| 4 | ``ndnsec-export`` is a tool to export an identity's security data |
| 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | $ ndnsec-export [-h] [-o output] [-p] identity |
| 12 | |
| 13 | Description |
| 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 |
| 18 | be encrypted. The exported identity can be imported again using ``ndnsec-import``. |
| 19 | |
| 20 | By default, the command will write exported data to standard output. |
| 21 | |
| 22 | Options |
| 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 | |
| 31 | Examples |
| 32 | -------- |
| 33 | |
| 34 | Export 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 | |
| 40 | Export an identity's security data without private key and write it to standard output: |
| 41 | |
| 42 | :: |
| 43 | |
| 44 | $ ndnsec-export /ndn/test/alice |