Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 1 | client.conf |
| 2 | =========== |
| 3 | |
| 4 | System configuration of NDN platform is specified in ``client.conf``. |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 5 | |
| 6 | The configuration file ``client.conf`` is looked up in several directories in the following order: |
| 7 | |
| 8 | - ``$HOME/.ndn/``: user-specific settings |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 9 | - ``@SYSCONFDIR@/ndn/`` (``/usr/local/etc/ndn``, ``/opt/local/etc/ndn``, or other, depending how the |
| 10 | library is configured): system-wide settings |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 11 | - ``/etc/ndn``: default system-wide settings |
| 12 | |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 13 | Here is an example of ``client.conf`` for current ndn-cxx package: |
| 14 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 15 | .. literalinclude:: ../../client.conf.sample |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 16 | |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 17 | |
| 18 | NFD |
| 19 | --- |
| 20 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 21 | transport |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 22 | FaceUri for default connection toward local NDN forwarder. Only ``unix`` and ``tcp4`` FaceUris |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 23 | can be specified here. |
| 24 | |
| 25 | By default, ``unix:///var/run/nfd.sock`` is used. |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 26 | |
Alexander Afanasyev | 57e0036 | 2016-06-23 13:22:54 -0700 | [diff] [blame] | 27 | ..note:: |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 28 | This value can be overridden using the ``NDN_CLIENT_TRANSPORT`` environment variable. |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 29 | |
| 30 | Key Management |
| 31 | -------------- |
| 32 | |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 33 | pib |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 34 | The public key information for each private key stored in TPM. The format for this setting is:: |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 35 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 36 | pib=[scheme]:[location] |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 37 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 38 | Possible values for ``[scheme]``: |
Yingdi Yu | 4e99f53 | 2014-08-25 19:40:57 -0700 | [diff] [blame] | 39 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 40 | * ``pib-sqlite3``: local PIB implementation with SQLite3 storage engine |
| 41 | |
| 42 | Possible values for ``[location]``: |
| 43 | |
| 44 | * absolute path where SQLite3 database will be stored |
| 45 | * relative path (relative to ``config.conf``) |
| 46 | * empty: default path ``$HOME/.ndn`` will be used |
| 47 | |
| 48 | When ``[location]`` is empty, trailing ``:`` can be omitted. For example:: |
| 49 | |
| 50 | pib=pib-sqlite3 |
| 51 | |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 52 | Changing PIB scheme without changing location is **not** allowed. If a change like this is |
| 53 | necessary, the whole backend storage must be destroyed. For example, when the default location is |
| 54 | used:: |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 55 | |
| 56 | rm -rf ~/.ndn/ndnsec-* |
| 57 | |
Junxiao Shi | 67fba7f | 2016-09-09 13:40:05 +0000 | [diff] [blame] | 58 | It's not recommended to share the same directory between machines, e.g. via NFS. |
| 59 | Simultaneous access from multiple machines may cause errors. |
| 60 | |
Alexander Afanasyev | 57e0036 | 2016-06-23 13:22:54 -0700 | [diff] [blame] | 61 | ..note:: |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 62 | This value can be overridden using the ``NDN_CLIENT_PIB`` environment variable. |
Alexander Afanasyev | 57e0036 | 2016-06-23 13:22:54 -0700 | [diff] [blame] | 63 | |
Alexander Afanasyev | 5208d0e | 2015-06-03 16:42:09 -0700 | [diff] [blame] | 64 | tpm |
| 65 | Trusted Platform Module (TPM) where the private keys are stored. The format for this setting |
| 66 | is:: |
| 67 | |
| 68 | tpm=[scheme]:[location] |
| 69 | |
| 70 | Possible values for ``[scheme]``: |
| 71 | |
| 72 | * ``tpm-osx-keychain`` (default on OS X platform): secure storage of private keys in OS X |
| 73 | Keychain with OS-provided access restrictions. |
| 74 | |
| 75 | ``[location]`` parameter is ignored. |
| 76 | |
| 77 | May not work for daemon applications, as user interaction may be required to access OS X |
| 78 | Keychain. |
| 79 | |
| 80 | * ``tpm-file`` (default on all other platforms): file-based storage of private keys |
| 81 | |
| 82 | Possible values for ``[location]``: |
| 83 | |
| 84 | * absolute path to directory that will store private/public key files (unencrypted with |
| 85 | ``0700`` permission) |
| 86 | * relative path (relative to ``config.conf``) |
| 87 | * empty: default path ``$HOME/.ndn/ndnsec-tpm-file`` will be used |
| 88 | |
| 89 | When ``[location]`` is empty, trailing ``:`` can be omitted. For example:: |
| 90 | |
| 91 | tpm=tpm-file |
| 92 | |
| 93 | **Change of ``tpm`` setting is only possible together with ``pib`` setting. Otherwise, an |
| 94 | error will be generated during PIB/TPM access** |
Alexander Afanasyev | 57e0036 | 2016-06-23 13:22:54 -0700 | [diff] [blame] | 95 | |
Junxiao Shi | 67fba7f | 2016-09-09 13:40:05 +0000 | [diff] [blame] | 96 | It's not recommended to share the same directory between machines, e.g. via NFS. |
| 97 | Simultaneous access from multiple machines may cause errors. |
| 98 | |
Alexander Afanasyev | 57e0036 | 2016-06-23 13:22:54 -0700 | [diff] [blame] | 99 | ..note:: |
Niv Sardi | 8ac8754 | 2016-12-13 15:38:06 -0300 | [diff] [blame] | 100 | This value can be overridden using the ``NDN_CLIENT_TPM`` environment variable. |