blob: da0c5b58ae2281d43236be353d1d82068ad8bf21 [file] [log] [blame]
Alexander Afanasyev151a8552014-04-11 00:54:43 -07001ndnsec-set-default
2==================
3
4``ndnsec-set-default`` is a tool to change the default security settings.
5
6Usage
7-----
8
9::
10
11 $ ndnsec-set-default [-h] [-k|c] name
12
13Description
14-----------
15
16By default, ``ndnsec-set-default`` takes ``name`` as an identity name and sets the identity as the
17system default identity.
18
19Options
20-------
21
22``-k``
23 Set default key. ``name`` should be a key name, ``ndnsec-set-default`` can infer the corresponding
24 identity and set the key as the identity's default key.
25
26``-c``
27 Set default certificate. ``name`` should be a certificate name, ``ndnsec-set-default`` can
28 infer the corresponding key name and set the certificate as the key's default certificate.
29
30Examples
31--------
32
33Set a key's default certificate:
34
35::
36
37 $ ndnsec-set-default -c /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F
38
39Set an identity's default key:
40
41::
42
43 $ ndnsec-set-default -k /ndn/test/alice/ksk-1394129695025
44
45Set system default identity:
46
47::
48
49 $ ndnsec-set-default /ndn/test/alice