Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame^] | 1 | ndnsec-set-default |
| 2 | ================== |
| 3 | |
| 4 | ``ndnsec-set-default`` is a tool to change the default security settings. |
| 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | $ ndnsec-set-default [-h] [-k|c] name |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | By default, ``ndnsec-set-default`` takes ``name`` as an identity name and sets the identity as the |
| 17 | system default identity. |
| 18 | |
| 19 | Options |
| 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 | |
| 30 | Examples |
| 31 | -------- |
| 32 | |
| 33 | Set 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 | |
| 39 | Set an identity's default key: |
| 40 | |
| 41 | :: |
| 42 | |
| 43 | $ ndnsec-set-default -k /ndn/test/alice/ksk-1394129695025 |
| 44 | |
| 45 | Set system default identity: |
| 46 | |
| 47 | :: |
| 48 | |
| 49 | $ ndnsec-set-default /ndn/test/alice |