blob: aa9e7d901264a60bf9a70c79696988839e128d9b [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 Pesavento102f0572024-06-22 15:00:06 -04007**ndnsec get-default** [**-h**] [**-k**\|\ **-c**] [**-i** *identity*\|\ **-K** *key*]
8[**-q**]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07009
10Description
11-----------
12
Davide Pesavento102f0572024-06-22 15:00:06 -040013This command shows the default settings of the local **Public Information Base (PIB)**
14or those of a specific PIB identity or key.
15
16By default, if neither :option:`-i` nor :option:`-K` is given, the command displays
17the default identity or the default key/certificate of the default identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070018
19Options
20-------
21
Davide Pesaventob310efb2019-04-11 22:10:24 -040022.. option:: -k, --default-key
Alexander Afanasyev151a8552014-04-11 00:54:43 -070023
Davide Pesaventob310efb2019-04-11 22:10:24 -040024 Display the chosen entity's default key name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070025
Davide Pesaventob310efb2019-04-11 22:10:24 -040026.. option:: -c, --default-cert
Alexander Afanasyev151a8552014-04-11 00:54:43 -070027
Davide Pesaventob310efb2019-04-11 22:10:24 -040028 Display the chosen entity's default certificate name.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
Davide Pesaventob310efb2019-04-11 22:10:24 -040030.. option:: -i <identity>, --identity <identity>
Alexander Afanasyev151a8552014-04-11 00:54:43 -070031
Davide Pesaventob310efb2019-04-11 22:10:24 -040032 Display default settings of *identity*.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070033
Davide Pesaventob310efb2019-04-11 22:10:24 -040034.. option:: -K <key>, --key <key>
Alexander Afanasyev151a8552014-04-11 00:54:43 -070035
Davide Pesaventob310efb2019-04-11 22:10:24 -040036 Display default settings of *key*.
37
38.. option:: -q, --quiet
39
40 Disable printing the trailing newline character.
41
Davide Pesavento102f0572024-06-22 15:00:06 -040042Examples
43--------
Davide Pesaventob310efb2019-04-11 22:10:24 -040044
45Display an identity's default key name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070046
Davide Pesavento102f0572024-06-22 15:00:06 -040047 $ ndnsec get-default -k -i /ndn/test/alice
Alexander Afanasyev151a8552014-04-11 00:54:43 -070048 /ndn/test/alice/ksk-1394129695025
49
Davide Pesaventob310efb2019-04-11 22:10:24 -040050Display an identity's default certificate name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070051
Davide Pesavento102f0572024-06-22 15:00:06 -040052 $ ndnsec get-default -c -i /ndn/test/alice
Alexander Afanasyev151a8552014-04-11 00:54:43 -070053 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
54
Davide Pesaventob310efb2019-04-11 22:10:24 -040055Display a key's default certificate name::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070056
Davide Pesavento102f0572024-06-22 15:00:06 -040057 $ ndnsec get-default -c -K /ndn/test/alice/ksk-1394129695025
Alexander Afanasyev151a8552014-04-11 00:54:43 -070058 /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
Davide Pesavento102f0572024-06-22 15:00:06 -040059
60See Also
61--------
62
63:manpage:`ndnsec-list(1)`,
64:manpage:`ndnsec-set-default(1)`