blob: 48889c8d00463472b73b2c19e982b3461e29a411 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-get-default
2==================
3
4``ndnsec-get-default`` is a tool to display the default setting of a particular entity.
5
6Usage
7-----
8
9::
10
11 $ ndnsec-get-default [-h] [-kc] [-i identity|-K key] [-q]
12
13Description
14-----------
15
16Given a particular entity, ``ndnsec-get-default`` can display its default setting as specified in
17options. If ``identity`` is specified, the given entity becomes the identity. If ``key`` is
18specified, the given identity becomes the key. If no entity is specified, the command will take the
19system default identity as the given entity.
20
21Options
22-------
23
24``-k``
25 Display the given entity's default key name.
26
27``-c``
28 Display the given entity's default certificate name.
29
30``-i identity``
31 Display default setting of the ``identity``
32
33``-K key``
34 Display default setting of the ``key``.
35
36``-q``
37 Disable trailling new line character.
38
39Examples
40--------
41
42Display an identity's default key name.
43
44::
45
46 $ ndnsec-get-default -k -i /ndn/test/alice
47 /ndn/test/alice/ksk-1394129695025
48
49Display an identity's default certificate name.
50
51::
52
53 $ ndnsec-get-default -c -i /ndn/test/alice
54 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
55
56Display a key's default certificate name.
57
58::
59
60 $ ndnsec-get-default -c -K /ndn/test/alice/ksk-1394129695025
61 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F