blob: 3f6b981d4a1f77972a1be7d58a65cd89da2b4b9a [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-set-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 set-default** [**-h**] [**-k**\|\ **-c**] *name*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesavento102f0572024-06-22 15:00:06 -040012This command allows changing the default security settings.
Davide Pesaventob310efb2019-04-11 22:10:24 -040013
Davide Pesavento102f0572024-06-22 15:00:06 -040014Without any options, *name*, which must refer to an existing NDN identity, is set as the
Davide Pesaventob310efb2019-04-11 22:10:24 -040015default identity for the current user.
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 Pesavento102f0572024-06-22 15:00:06 -040022 Set *name*, which must be a key name, as the default key for the corresponding identity.
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 Pesavento102f0572024-06-22 15:00:06 -040026 Set *name*, which must be a certificate name, as the default certificate for the
27 corresponding key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070028
Davide Pesavento102f0572024-06-22 15:00:06 -040029Examples
30--------
Davide Pesaventob310efb2019-04-11 22:10:24 -040031
32Set a key's default certificate::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070033
Davide Pesavento102f0572024-06-22 15:00:06 -040034 $ ndnsec set-default -c /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
Alexander Afanasyev151a8552014-04-11 00:54:43 -070035
Davide Pesaventob310efb2019-04-11 22:10:24 -040036Set an identity's default key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070037
Davide Pesavento102f0572024-06-22 15:00:06 -040038 $ ndnsec set-default -k /ndn/test/alice/ksk-1394129695025
Alexander Afanasyev151a8552014-04-11 00:54:43 -070039
Davide Pesaventob310efb2019-04-11 22:10:24 -040040Set the user's default identity::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070041
Davide Pesavento102f0572024-06-22 15:00:06 -040042 $ ndnsec set-default /ndn/test/alice
43
44See Also
45--------
46
47:manpage:`ndnsec-get-default(1)`,
48:manpage:`ndnsec-list(1)`