26.37. kych-eid.conf(5)#
26.37.1. Name#
kych-eid.conf - configuration file of kych-eid
26.37.2. Description#
kych-eid(1) and kych-eid-berca(1) read their configuration in the GNU Taler
format: sections in brackets, OPTION = value lines, @inline@ and
@inline-secret@ includes and $VARIABLE expansion in paths, as
kych.conf(5) describes. A comment must stand on a line of its own: a #
after a value is part of the value.
The file is looked for at $XDG_CONFIG_HOME/kych-eid.conf,
~/.config/kych-eid.conf, /etc/kych-eid.conf and
/etc/kych-eid/kych-eid.conf, unless -c names one. The files in
$DATADIR/config.d/ (/usr/share/kych-eid/config.d/ for the Debian
package) are read before it, so it needs to hold only what differs.
26.37.3. THE KYCH-EID SECTION#
The management interface, the database, the trust material and the timing.
- SERVE
unix(the default of the package),tcporsystemd: where the management interface listens. Withtcp,BIND_TOmust be a loopback address: the daemon refuses to start otherwise.- UNIXPATH, UNIXPATH_MODE
The management socket and its mode (
/run/kych-eid/api.sock,660: the daemon’s group, which KyCH’s user is in).- BIND_TO, PORT
For
SERVE = tcp.- DATABASE
The PostgreSQL database, as a
postgres://URI (postgres:///kych-eid?host=/var/run/postgresql: the local socket, as the daemon’s system user). The schema iskych_eid.- SQL_DIR
Where kych-eid-dbinit(1) finds the schema patches (
$DATADIR/sql).- API_SECRET
The bearer secret KyCH authenticates with, at least 32 characters; the same value as
API_SECRETin KyCH’s[helper-kych-eid]. The Debian package generates it in/etc/kych-eid/secrets/api.secret.confand pulls it in with@inline-secret@.- BASE_URL
Where the reverse proxy publishes the public interface, with a trailing slash, e.g.
https://eid.example.com/kych-eid/. Required, andhttps(httponly on loopback, for tests). Its origin must be the subject URL of the certificate description: kych-eid refuses trust material whose description names another, since the eID client would refuse the tcToken.- EID_CLIENT_URL
The eID client’s activation URL the start page links to, with
?tcTokenURL=appended (http://127.0.0.1:24727/eID-Client, TR-03124-1).- STATE_DIR
The directory kych-eid-berca(1) keeps the trust material in (
/var/lib/kych-eid).- MASTER_LIST_TRUST_ANCHOR
The certificate(s), PEM, the CSCA master list’s signer must be issued by (the CSCA, from the BerCA contract).
- BLOCK_LIST_TRUST_ANCHOR
The block list’s signer, or its issuer, PEM (from the BerCA contract).
- CRL_FILES
Optional: CRLs (PEM or DER) of the CSCAs; a document signer they revoke fails Passive Authentication.
{file, file}.- RESULT_SIGNING_KEY, RESULT_SIGNING_CERTIFICATE
The private key (PEM, readable by the daemon only) the results are signed with, and its X.509 certificate. The Debian package generates a key and a self-signed certificate.
- MAX_AGE
The longest a session may last (
15 min); KyCH’sexpiresis cut to it.- DIALOGUE_TIMEOUT
The longest a PAOS dialogue may take once the tcToken was fetched (
10 min).- MAX_BLOCK_LIST_AGE
New sessions are refused while the block list file is older than this (
48 h): the check against revoked cards must not run on stale data.- RELOAD_INTERVAL
How often the trust material is loaded again if a file changed (
5 min).- PURGE_GRACE, RETENTION, SWEEP_INTERVAL
The attributes and the evidence are deleted
PURGE_GRACE(10 min) after KyCH first fetched them, or at the session’s expiry; the rowRETENTION(24 h) after the session ended; the sweeper runs everySWEEP_INTERVAL(1 min).
26.37.4. THE KYCH-EID-PUBLIC SECTION#
- SERVE, UNIXPATH, UNIXPATH_MODE, BIND_TO, PORT
Where the public interface listens. The Debian package has
SERVE = systemd: kych-eid.socket creates/run/kych-eid-public.sockwith groupwww-data, for nginx.
26.37.5. THE KYCH-EID-BERCA SECTION#
For kych-eid-berca(1).
- URL
The BerCA’s URL for all three services, or
- TERMINAL_AUTH_URL, PASSIVE_AUTH_URL, RESTRICTED_ID_URL
each service’s own (BSI TR-03129: terminal authentication, passive authentication, restricted identification).
- SERVER_CERTIFICATE
The BerCA’s TLS certificate or its CA, PEM: the only trust anchor for that connection.
- CLIENT_CERTIFICATE, CLIENT_KEY
The TLS client certificate and key (PEM, PKCS#8) the BerCA knows us by.
- HOLDER
The country code and holder mnemonic of the authorisation certificates, e.g.
DEEXAMPLE; the sequence number is appended.- RENEW_BEFORE
Renew the terminal certificate this long before it expires (
48 h).- TIMEOUT
The longest one request to the BerCA may take (
60 s).
26.37.6. See Also#
kych-eid(1), kych-eid-berca(1), kych-eid-dbinit(1), kych.conf(5).
26.37.7. Bugs#
Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.