blob: 50abf21adec5d515c0a20c3e54a30a581f6cc0fa [file] [log] [blame]
Yingdi Yu4e99f532014-08-25 19:40:57 -07001client.conf
2===========
3
4System configuration of NDN platform is specified in ``client.conf``.
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -07005
6The configuration file ``client.conf`` is looked up in several directories in the following order:
7
8- ``$HOME/.ndn/``: user-specific settings
9- ``@SYSCONFDIR@/ndn/`` (``/usr/local/etc/ndn``, ``/opt/local/etc/ndn``, or other, depending how the library is configured): system-wide settings
10- ``/etc/ndn``: default system-wide settings
11
Yingdi Yu4e99f532014-08-25 19:40:57 -070012Here is an example of ``client.conf`` for current ndn-cxx package:
13
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070014.. literalinclude:: ../../client.conf.sample
Yingdi Yu4e99f532014-08-25 19:40:57 -070015
Yingdi Yu4e99f532014-08-25 19:40:57 -070016
17NFD
18---
19
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070020transport
21 FaceUri for default connection toward local NDN forwarder. Only ``unix`` and ``tcp4`` FaceUri
22 can be specified here.
23
24 By default, ``unix:///var/run/nfd.sock`` is used.
Yingdi Yu4e99f532014-08-25 19:40:57 -070025
26Prefix Registration
27-------------------
28
29protocol
30 The prefix registration protocol. For now, only one protocol ``nrd-0.1`` is supported.
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070031 With this protocol, applications send prefix registration requests to NFD RIB manager.
32 NFD RIB Manager, after authenticating the request, will set up corresponding FIB entries
33 in NFD.
Yingdi Yu4e99f532014-08-25 19:40:57 -070034
35Key Management
36--------------
37
Yingdi Yu4e99f532014-08-25 19:40:57 -070038pib
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070039 The public key information for each private key stored in TPM. The format for this setting is::
Yingdi Yu4e99f532014-08-25 19:40:57 -070040
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070041 pib=[scheme]:[location]
Yingdi Yu4e99f532014-08-25 19:40:57 -070042
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070043 Possible values for ``[scheme]``:
Yingdi Yu4e99f532014-08-25 19:40:57 -070044
Alexander Afanasyev5208d0e2015-06-03 16:42:09 -070045 * ``pib-sqlite3``: local PIB implementation with SQLite3 storage engine
46
47 Possible values for ``[location]``:
48
49 * absolute path where SQLite3 database will be stored
50 * relative path (relative to ``config.conf``)
51 * empty: default path ``$HOME/.ndn`` will be used
52
53 When ``[location]`` is empty, trailing ``:`` can be omitted. For example::
54
55 pib=pib-sqlite3
56
57 Changing PIB scheme without changing location is **not** allowed. If such change is
58 necessary, the whole backend storage must be destroyed. For example, when default location
59 is used::
60
61 rm -rf ~/.ndn/ndnsec-*
62
63tpm
64 Trusted Platform Module (TPM) where the private keys are stored. The format for this setting
65 is::
66
67 tpm=[scheme]:[location]
68
69 Possible values for ``[scheme]``:
70
71 * ``tpm-osx-keychain`` (default on OS X platform): secure storage of private keys in OS X
72 Keychain with OS-provided access restrictions.
73
74 ``[location]`` parameter is ignored.
75
76 May not work for daemon applications, as user interaction may be required to access OS X
77 Keychain.
78
79 * ``tpm-file`` (default on all other platforms): file-based storage of private keys
80
81 Possible values for ``[location]``:
82
83 * absolute path to directory that will store private/public key files (unencrypted with
84 ``0700`` permission)
85 * relative path (relative to ``config.conf``)
86 * empty: default path ``$HOME/.ndn/ndnsec-tpm-file`` will be used
87
88 When ``[location]`` is empty, trailing ``:`` can be omitted. For example::
89
90 tpm=tpm-file
91
92 **Change of ``tpm`` setting is only possible together with ``pib`` setting. Otherwise, an
93 error will be generated during PIB/TPM access**