blob: 05c66777f2e7ebf4362574fb6d34f4dc92652813 [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 Pesaventob310efb2019-04-11 22:10:24 -04007**ndnsec-set-default** [**-h**] [**-k**\|\ **-c**] *name*
Alexander Afanasyev151a8552014-04-11 00:54:43 -07008
9Description
10-----------
11
Davide Pesaventob310efb2019-04-11 22:10:24 -040012:program:`ndnsec-set-default` allows changing the default security settings.
13
14Without any options, *name*, which must be an identity name, is set as the
15default 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 Pesaventob310efb2019-04-11 22:10:24 -040022 Set *name*, which must be a key name, as the default key for the
23 corresponding identity.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070024
Davide Pesaventob310efb2019-04-11 22:10:24 -040025.. option:: -c, --default-cert
Alexander Afanasyev151a8552014-04-11 00:54:43 -070026
Davide Pesaventob310efb2019-04-11 22:10:24 -040027 Set *name*, which must be a certificate name, as the default certificate
28 for the corresponding key.
Alexander Afanasyev151a8552014-04-11 00:54:43 -070029
Davide Pesaventob310efb2019-04-11 22:10:24 -040030Example
31-------
32
33Set a key's default certificate::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070034
35 $ ndnsec-set-default -c /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
36
Davide Pesaventob310efb2019-04-11 22:10:24 -040037Set an identity's default key::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070038
39 $ ndnsec-set-default -k /ndn/test/alice/ksk-1394129695025
40
Davide Pesaventob310efb2019-04-11 22:10:24 -040041Set the user's default identity::
Alexander Afanasyev151a8552014-04-11 00:54:43 -070042
43 $ ndnsec-set-default /ndn/test/alice