Alexander Afanasyev | 151a855 | 2014-04-11 00:54:43 -0700 | [diff] [blame] | 1 | ndnsec-get-default |
| 2 | ================== |
| 3 | |
| 4 | ``ndnsec-get-default`` is a tool to display the default setting of a particular entity. |
| 5 | |
| 6 | Usage |
| 7 | ----- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | $ ndnsec-get-default [-h] [-kc] [-i identity|-K key] [-q] |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | Given a particular entity, ``ndnsec-get-default`` can display its default setting as specified in |
| 17 | options. If ``identity`` is specified, the given entity becomes the identity. If ``key`` is |
| 18 | specified, the given identity becomes the key. If no entity is specified, the command will take the |
| 19 | system default identity as the given entity. |
| 20 | |
| 21 | Options |
| 22 | ------- |
| 23 | |
| 24 | ``-k`` |
| 25 | Display the given entity's default key name. |
| 26 | |
| 27 | ``-c`` |
| 28 | Display the given entity's default certificate name. |
| 29 | |
| 30 | ``-i identity`` |
| 31 | Display default setting of the ``identity`` |
| 32 | |
| 33 | ``-K key`` |
| 34 | Display default setting of the ``key``. |
| 35 | |
| 36 | ``-q`` |
| 37 | Disable trailling new line character. |
| 38 | |
| 39 | Examples |
| 40 | -------- |
| 41 | |
| 42 | Display an identity's default key name. |
| 43 | |
| 44 | :: |
| 45 | |
| 46 | $ ndnsec-get-default -k -i /ndn/test/alice |
| 47 | /ndn/test/alice/ksk-1394129695025 |
| 48 | |
| 49 | Display an identity's default certificate name. |
| 50 | |
| 51 | :: |
| 52 | |
| 53 | $ ndnsec-get-default -c -i /ndn/test/alice |
| 54 | /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F |
| 55 | |
| 56 | Display a key's default certificate name. |
| 57 | |
| 58 | :: |
| 59 | |
| 60 | $ ndnsec-get-default -c -K /ndn/test/alice/ksk-1394129695025 |
| 61 | /ndn/test/KEY/alice/ksk-1394129695025/ID-CERT/%FD%01D%98%9A%F2%3F |