Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-key-gen |
| 2 | ============== |
| 3 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 4 | Synopsis |
| 5 | -------- |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 6 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 7 | **ndnsec-key-gen** [**-h**] [**-n**] [**-t** *type*] [**-k** *keyidtype*] *identity* |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 8 | |
| 9 | Description |
| 10 | ----------- |
| 11 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 12 | :program:`ndnsec-key-gen` generates a key pair for the specified *identity* and |
| 13 | sets the generated public key as the identity's default key. |
| 14 | :program:`ndnsec-key-gen` will also create a signing request for the generated key. |
| 15 | The signing request will be written to the standard output in base64 encoding. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 17 | By default, it will also set the identity as the user's default identity. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 18 | |
| 19 | Options |
| 20 | ------- |
| 21 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 22 | .. option:: -n, --not-default |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 23 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 24 | Do not set the identity as the user's default identity. |
Alexander Afanasyev | 2a047eb | 2014-11-30 22:45:02 -0800 | [diff] [blame] | 25 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 26 | Note that if no other identity/key/certificate exists, then the identity |
| 27 | will become the default regardless of this option. |
Yingdi Yu | 7d8644a | 2014-12-01 22:55:49 -0800 | [diff] [blame] | 28 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame^] | 29 | .. option:: -t <type>, --type <type> |
| 30 | |
| 31 | Type of key to generate. "r" for RSA (default), "e" for ECDSA. |
| 32 | |
| 33 | .. option:: -k <keyidtype>, --keyid-type <keyidtype> |
| 34 | |
| 35 | Type of KeyId for the generated key. "r" for 64-bit random number (default), |
| 36 | "h" for SHA256 of the public key. |
| 37 | |
| 38 | Example |
| 39 | ------- |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 40 | |
| 41 | :: |
| 42 | |
| 43 | $ ndnsec-key-gen /ndn/test/david |
| 44 | Bv0DAAc9CANuZG4IBHRlc3QIBWRhdmlkCANLRVkIEWtzay0xMzk2OTEzMDU4MTk2 |
| 45 | CAdJRC1DRVJUCAgAAAFFPoG0ohQDGAECFf0BeDCCAXQwIhgPMjAxNDA0MDcyMzI0 |
| 46 | MThaGA8yMDM0MDQwMjIzMjQxOFowKjAoBgNVBCkTIS9uZG4vdGVzdC9kYXZpZC9r |
| 47 | c2stMTM5NjkxMzA1ODE5NjCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEB |
| 48 | ALS6udLacpydecxMRIfZeo74fxzpsITqaa/4UxD2FJ9lU4dtfiSSIOaRwAB/w0K/ |
| 49 | AauQRq3Q1AiEocUsW2h8LmtcuF4Cj9TGAUD/1s3CISMwf9zwQ3ZhNIzN0IOsrpPA |
| 50 | TsHrbdwtOxrcFvXX4GnMLWgtvcSB52Cn68h/4AUiA1CG9/DOyCyA4EHiIkHBxh6B |
| 51 | TvAmw7SmNjr1ZBTYMaMAEV5/oLZCHzHRO+2fKdEttaWH3bz7iKVVS8u5ZxXcBs8g |
| 52 | ot55m7Xf6/TUk3qQXM1kM8wW04U+8n3jch1i7tD2T3c/OFKTT7AWndwcfbU99Z6C |
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