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 | |
Alexander Afanasyev | 634a62b | 2018-06-15 16:55:26 -0400 | [diff] [blame] | 27 | ``-P passphrase`` |
| 28 | Passphrase to use for the export. If not specified (or specified an empty passphrase), the |
| 29 | user is interactively asked to input the passphrase on the terminal. Note that specifying |
| 30 | passphrase via -P is insecure, as it can potentially end up in shell history, be visible in |
| 31 | ps output, etc. |
| 32 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 33 | ``identity`` |
| 34 | The identity name. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 35 | |
| 36 | Examples |
| 37 | -------- |
| 38 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 39 | Export an identity's default certificate and private key into a file: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 40 | |
| 41 | :: |
| 42 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 43 | $ ndnsec-export -o alice.ndnkey /ndn/test/alice |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 44 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 45 | 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] | 46 | |
| 47 | :: |
| 48 | |
| 49 | $ ndnsec-export /ndn/test/alice |