blob: 0a27dee728b4dfd7b9dc956970979385193149b8 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-get-default
2==================
3
Davide Pesaventob310efb2019-04-11 22:10:24 -04004Synopsis
5--------
Alexander Afanasyev151a8552014-04-11 00:54:43 -07006
Davide Pesaventob310efb2019-04-11 22:10:24 -04007**ndnsec-get-default** [**-h**] [**-k**\|\ **-c**] [**-i** *identity*\|\ **-K** *key*] [**-q**]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesaventob310efb2019-04-11 22:10:24 -040012Given a particular entity, :program:`ndnsec-get-default` shows its default settings
13according to the command-line options. By default, if neither **-i** nor **-K** is
14given, the command displays the default identity or the default key/certificate of
15the default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070016
17Options
18-------
19
Davide Pesaventob310efb2019-04-11 22:10:24 -040020.. option:: -k, --default-key
Alexander Afanasyev151a8552014-04-11 00:54:43 -070021
Davide Pesaventob310efb2019-04-11 22:10:24 -040022 Display the chosen entity's default key name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070023
Davide Pesaventob310efb2019-04-11 22:10:24 -040024.. option:: -c, --default-cert
Alexander Afanasyev151a8552014-04-11 00:54:43 -070025
Davide Pesaventob310efb2019-04-11 22:10:24 -040026 Display the chosen entity's default certificate name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070027
Davide Pesaventob310efb2019-04-11 22:10:24 -040028.. option:: -i <identity>, --identity <identity>
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
Davide Pesaventob310efb2019-04-11 22:10:24 -040030 Display default settings of *identity*.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070031
Davide Pesaventob310efb2019-04-11 22:10:24 -040032.. option:: -K <key>, --key <key>
Alexander Afanasyev151a8552014-04-11 00:54:43 -070033
Davide Pesaventob310efb2019-04-11 22:10:24 -040034 Display default settings of *key*.
35
36.. option:: -q, --quiet
37
38 Disable printing the trailing newline character.
39
40Example
41-------
42
43Display an identity's default key name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070044
45 $ ndnsec-get-default -k -i /ndn/test/alice
46 /ndn/test/alice/ksk-1394129695025
47
Davide Pesaventob310efb2019-04-11 22:10:24 -040048Display an identity's default certificate name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070049
50 $ ndnsec-get-default -c -i /ndn/test/alice
51 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
52
Davide Pesaventob310efb2019-04-11 22:10:24 -040053Display a key's default certificate name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070054
55 $ ndnsec-get-default -c -K /ndn/test/alice/ksk-1394129695025
56 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F