blob: 5c3e8f9ba1e4e62836fb7c727bfdabfb3fe3a2ca [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-list
2===========
3
Davide Pesaventob310efb2019-04-11 22:10:24 -04004Synopsis
5--------
Alexander Afanasyev151a8552014-04-11 00:54:43 -07006
Davide Pesavento102f0572024-06-22 15:00:06 -04007**ndnsec list** [**-h**] [**-k**] [**-c**] [**-v**\|\ **-vv**\|\ **-vvv**]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesavento102f0572024-06-22 15:00:06 -040012Print the names of all the entities stored in the **Public Information Base (PIB)**,
13such as identities, keys, and certificates, up to the given granularity level.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070014
Davide Pesavento102f0572024-06-22 15:00:06 -040015By default, only the identity names are shown. In the output, the default entities
16are marked with an asterisk ("*") in front of their names.
17
18Options
19-------
20
21.. option:: -k, --key
22
23 Also list the key names for each identity.
24 An asterisk ("*") in front of a key name indicates the default key of the corresponding
25 identity.
26
27.. option:: -c, --cert
28
29 Also list the certificate names for each key. Implies :option:`-k`.
30 An asterisk ("*") in front of a certificate name indicates the default certificate of
31 the corresponding key.
32
33.. option:: -v, -vv, -vvv, --verbose
34
35 Verbose output mode.
36 This option can be repeated up to three times to increase the level of verbosity:
37 :option:`-v` is equivalent to :option:`-k`;
38 :option:`-vv` is equivalent to :option:`-c`;
39 :option:`-vvv` prints detailed information for each certificate.
40
41Examples
42--------
43
44Display all identity names in the PIB::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070045
46 $ ndnsec list
47 * /ndn/edu/ucla/cs/yingdi
48 /ndn/test/cathy
49 /ndn/test/bob
50 /ndn/test/alice
51
Davide Pesavento102f0572024-06-22 15:00:06 -040052Display all key names in the PIB::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070053
Davide Pesavento102f0572024-06-22 15:00:06 -040054 $ ndnsec list -k
Alexander Afanasyev151a8552014-04-11 00:54:43 -070055 * /ndn/edu/ucla/cs/yingdi
56 +->* /ndn/edu/ucla/cs/yingdi/ksk-1397247318867
57 +-> /ndn/edu/ucla/cs/yingdi/ksk-1393811874052
58
59 /ndn/test/cathy
60 +->* /ndn/test/cathy/ksk-1394129695418
61
62 /ndn/test/bob
63 +->* /ndn/test/bob/ksk-1394129695308
64
65 /ndn/test/alice
66 +->* /ndn/test/alice/ksk-1394129695025
67
Davide Pesavento102f0572024-06-22 15:00:06 -040068Display all certificate names in the PIB::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070069
Davide Pesavento102f0572024-06-22 15:00:06 -040070 $ ndnsec list -c
Alexander Afanasyev151a8552014-04-11 00:54:43 -070071 * /ndn/edu/ucla/cs/yingdi
72 +->* /ndn/edu/ucla/cs/yingdi/ksk-1397247318867
73 +->* /ndn/edu/ucla/cs/yingdi/KEY/ksk-1397247318867/ID-CERT/%00%00%01ERn%1B%BE
74 +-> /ndn/edu/ucla/cs/yingdi/ksk-1393811874052
75 +->* /ndn/edu/ucla/cs/yingdi/KEY/ksk-1393811874052/ID-CERT/%FD%01D%85%A9a%DD
76
77 /ndn/test/cathy
78 +->* /ndn/test/cathy/ksk-1394129695418
79 +->* /ndn/test/KEY/cathy/ksk-1394129695418/ID-CERT/%FD%01D%98%9A%F3J
80
81 /ndn/test/bob
82 +->* /ndn/test/bob/ksk-1394129695308
83 +->* /ndn/test/KEY/bob/ksk-1394129695308/ID-CERT/%FD%01D%98%9A%F2%AE
84
85 /ndn/test/alice
86 +->* /ndn/test/alice/ksk-1394129695025
87 +->* /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
Davide Pesavento102f0572024-06-22 15:00:06 -040088
89See Also
90--------
91
92:manpage:`ndnsec-cert-dump(1)`,
93:manpage:`ndnsec-cert-install(1)`,
94:manpage:`ndnsec-delete(1)`,
95:manpage:`ndnsec-get-default(1)`,
96:manpage:`ndnsec-key-gen(1)`,
97:manpage:`ndnsec-set-default(1)`