Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-list |
| 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-list** [**-h**] [**-k**\|\ **-c**] |
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-list` prints the names of all the entities stored in the |
| 13 | **Public Information Base (PIB)**, such as identities, keys, and certificates, |
| 14 | up to the given granularity level. By default, only the identity names are |
| 15 | shown. The default entities will be marked with a "*" in front of their names. |
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 | For example:: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 18 | |
| 19 | $ ndnsec list |
| 20 | * /ndn/edu/ucla/cs/yingdi |
| 21 | /ndn/test/cathy |
| 22 | /ndn/test/bob |
| 23 | /ndn/test/alice |
| 24 | |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 25 | Options |
| 26 | ------- |
| 27 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 28 | .. option:: -k, --key |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 29 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 30 | Display key names for each identity. The key name with a "*" in front is |
| 31 | the default key name of the corresponding identity. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 32 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 33 | .. option:: -c, --cert |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 34 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 35 | Display certificate names for each key. The certificate name with a "*" |
| 36 | in front is the default certificate name of the corresponding key. |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 37 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 38 | Example |
| 39 | ------- |
| 40 | |
| 41 | Display all the key names in PIB:: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 42 | |
| 43 | $ ndnsec-list -k |
| 44 | * /ndn/edu/ucla/cs/yingdi |
| 45 | +->* /ndn/edu/ucla/cs/yingdi/ksk-1397247318867 |
| 46 | +-> /ndn/edu/ucla/cs/yingdi/ksk-1393811874052 |
| 47 | |
| 48 | /ndn/test/cathy |
| 49 | +->* /ndn/test/cathy/ksk-1394129695418 |
| 50 | |
| 51 | /ndn/test/bob |
| 52 | +->* /ndn/test/bob/ksk-1394129695308 |
| 53 | |
| 54 | /ndn/test/alice |
| 55 | +->* /ndn/test/alice/ksk-1394129695025 |
| 56 | |
Davide Pesavento | b310efb | 2019-04-11 22:10:24 -0400 | [diff] [blame] | 57 | Display all the certificate names in PIB:: |
Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 58 | |
| 59 | $ ndnsec-list -c |
| 60 | * /ndn/edu/ucla/cs/yingdi |
| 61 | +->* /ndn/edu/ucla/cs/yingdi/ksk-1397247318867 |
| 62 | +->* /ndn/edu/ucla/cs/yingdi/KEY/ksk-1397247318867/ID-CERT/%00%00%01ERn%1B%BE |
| 63 | +-> /ndn/edu/ucla/cs/yingdi/ksk-1393811874052 |
| 64 | +->* /ndn/edu/ucla/cs/yingdi/KEY/ksk-1393811874052/ID-CERT/%FD%01D%85%A9a%DD |
| 65 | |
| 66 | /ndn/test/cathy |
| 67 | +->* /ndn/test/cathy/ksk-1394129695418 |
| 68 | +->* /ndn/test/KEY/cathy/ksk-1394129695418/ID-CERT/%FD%01D%98%9A%F3J |
| 69 | |
| 70 | /ndn/test/bob |
| 71 | +->* /ndn/test/bob/ksk-1394129695308 |
| 72 | +->* /ndn/test/KEY/bob/ksk-1394129695308/ID-CERT/%FD%01D%98%9A%F2%AE |
| 73 | |
| 74 | /ndn/test/alice |
| 75 | +->* /ndn/test/alice/ksk-1394129695025 |
| 76 | +->* /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F |