Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-key-gen |
| 2 | ============== |
| 3 | |
Yingdi Yu | 7d8644a | 2014-12-01 22:55:49 -0800 | [diff] [blame] | 4 | ``ndnsec-key-gen`` is tool to generate a pair of key. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
Yingdi Yu | 7d8644a | 2014-12-01 22:55:49 -0800 | [diff] [blame] | 11 | $ ndnsec-key-gen [-h] [-n] [-d] [-t keyType] identity |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
Yingdi Yu | 7d8644a | 2014-12-01 22:55:49 -0800 | [diff] [blame] | 16 | ``ndnsec-key-gen`` creates a key pair for the specified ``identity`` and sets the key as the |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 17 | identity's default key. ``ndnsec-key-gen`` will also create a signing request for the generated key. |
| 18 | The signing request will be written to standard output in base64 encoding. |
| 19 | |
| 20 | By default, it will also set the identity as the system default identity. |
| 21 | |
| 22 | Options |
| 23 | ------- |
| 24 | |
| 25 | ``-n`` |
| 26 | Do not set the identity as the system default identity. |
| 27 | |
Alexander Afanasyev | 35109a1 | 2017-01-04 15:39:06 -0800 | [diff] [blame] | 28 | Note that if it is the first identity/key/certificate, then it will be |
| 29 | set as default regardless of ``-n`` flag. |
Alexander Afanasyev | 2a047eb | 2014-11-30 22:45:02 -0800 | [diff] [blame] | 30 | |
Yingdi Yu | 7d8644a | 2014-12-01 22:55:49 -0800 | [diff] [blame] | 31 | ``-t keyType`` |
| 32 | Specify the key type. ``r`` (default) for RSA key. ``e`` for ECDSA key. |
| 33 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 34 | Examples |
| 35 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