Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-export |
| 2 | ============= |
| 3 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 4 | Usage |
| 5 | ----- |
| 6 | |
| 7 | :: |
| 8 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 9 | $ ndnsec-export [-h] [-o output] identity |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 10 | |
| 11 | Description |
| 12 | ----------- |
| 13 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 14 | ``ndnsec-export`` exports the default certificate of an identity and its private key as a file. It |
| 15 | will ask for a passphrase to encrypt the private key. The output file can be imported again with |
| 16 | ``ndnsec-import`` command. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 17 | |
| 18 | Options |
| 19 | ------- |
| 20 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 21 | ``-h`` |
| 22 | Print a help message. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 23 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 24 | ``-o output`` |
| 25 | Write to an output file instead of the standard output. |
| 26 | |
| 27 | ``identity`` |
| 28 | The identity name. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 29 | |
| 30 | Examples |
| 31 | -------- |
| 32 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 33 | Export an identity's default certificate and private key into a file: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 34 | |
| 35 | :: |
| 36 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 37 | $ ndnsec-export -o alice.ndnkey /ndn/test/alice |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 38 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame^] | 39 | Export an identity's default certificate and private key to the standard output: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 40 | |
| 41 | :: |
| 42 | |
| 43 | $ ndnsec-export /ndn/test/alice |