Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-import |
| 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-import [-h] input |
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-import`` imports a certificate and private key from a file created by ``ndnsec-export``. It |
| 15 | will ask for the passphrase used to encrypt the private key. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 16 | |
| 17 | Options |
| 18 | ------- |
| 19 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 20 | ``-h`` |
| 21 | Print a help message. |
| 22 | |
Alexander Afanasyev | 634a62b | 2018-06-15 16:55:26 -0400 | [diff] [blame] | 23 | ``-P passphrase`` |
| 24 | Passphrase to use for the export. If not specified (or specified an empty passphrase), the |
| 25 | user is interactively asked to input the passphrase on the terminal. Note that specifying |
| 26 | passphrase via -P is insecure, as it can potentially end up in shell history, be visible in |
| 27 | ps output, etc. |
| 28 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 29 | ``input`` |
| 30 | Read from an input file. Specify ``-`` to read from the standard input. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 31 | |
| 32 | Examples |
| 33 | -------- |
| 34 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 35 | Import a certificate and private key from a file: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 36 | |
| 37 | :: |
| 38 | |
Junxiao Shi | 476200b | 2017-10-05 12:16:27 +0000 | [diff] [blame] | 39 | $ ndnsec-import alice.ndnkey |