26.47. kych-trust.conf(5)#

26.47.1. Name#

kych-trust.conf - configuration file of kych-trust

26.47.2. Description#

kych-trust(1) reads its configuration in the GNU Taler format: sections in brackets, OPTION = value lines, @inline@ 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-trust.conf, ~/.config/kych-trust.conf, /etc/kych-trust.conf and /etc/kych-trust/kych-trust.conf, unless -c names one. The files in $DATADIR/config.d/ (/usr/share/kych-trust/config.d/ for the Debian package) are read before it, so it needs to hold only what differs.

The [trust-*] sections are the very ones kych.conf(5) names in its vocabularies’ TRUST options. Keep them in a file of their own and pull it into both configurations with @inline@: each program reads its own options and leaves the others alone.

26.47.3. THE KYCH-TRUST SECTION#

SERVE

unix, tcp or systemd: listen on a Unix domain socket the daemon binds itself, on a TCP port, or on a socket systemd passes in. The EUDI verifier can only use TCP. Default unix.

UNIXPATH

With SERVE = unix: the socket’s path. Default /run/kych-trust/kych-trust.sock.

UNIXPATH_MODE

With SERVE = unix: the socket’s permissions, in octal. Default 660.

BIND_TO

With SERVE = tcp: the address to listen on. Keep it 127.0.0.1: the interface has no authentication.

PORT

With SERVE = tcp: the port.

DATABASE

The PostgreSQL database, as a URI; see kych.conf(5) for a socket on a non-default port. Default postgres:///kych-trust?host=/var/run/postgresql.

SQL_DIR

Where kych-trust-dbinit(1) finds the schema. Default $DATADIR/sql.

REFRESH_INTERVAL

How often every list is fetched again, e.g. 1 h (the default) or 15 min.

FETCH_TIMEOUT

How long one fetch may take. Default 30 s.

26.47.4. TRUST SECTIONS#

Every [trust-NAME] section with LOTE_URL or LOTE_FILE is one list to serve; NAME is how snapshots, GET /status and KyCH’s evidence name it. Sections with ACCEPTED_ISSUER_DIDS instead belong to KyCH’s swiyu helper and are skipped. A verification context is served by one list only.

LOTE_URL

Where to fetch the list: an https (or http) URL of a list of trusted entities (ETSI TS 119 602) in the encoding the Commission publishes, the JSON data model in a compact JWS – the .jwt files under https://trustedlist.serviceproviders.eudiw.dev/LOTE/json/, for instance.

LOTE_FILE

Instead of LOTE_URL: a file holding the list, read again at every refresh.

LOTE_SIGNER

A PEM file with one or more certificates. The list must be signed by one of them, or by a certificate that chains to one of them and that the list carries in its x5c header – the loteSignerTrustAnchors of the EUDI wallets. Required.

CLASS

What the list is a list of, which decides the list type it must have and the verification contexts its services anchor (issuance, revocation):

PID

PID providers: PID, PIDStatus.

PubEAA

Public-sector EAA providers: PubEAA, PubEAAStatus.

QEAA

Qualified EAA providers: QEAA, QEAAStatus. The EU publishes these as ETSI TS 119 612 trusted lists rather than as lists of trusted entities, so LOTE_TYPE and the service types must be given.

EAA

EAA providers of one use case (USE_CASE): EAA, EAAStatus with that use case. Only USE_CASE = mDL has default types.

WalletProvider

Wallet providers: WalletProviderAttestation, WalletOrKeyStorageStatus.

WRPAC

Access-certificate providers: WalletRelyingPartyAccessCertificate. Listed certificates must be CAs.

WRPRC

Registration-certificate providers: WalletRelyingPartyRegistrationCertificate and its status.

Required.

USE_CASE

With CLASS = EAA: the use case, e.g. mDL, as the EUDI verifier’s attestation classification names it.

LOTE_TYPE

The LoTEType the list must have. Defaults to the class’s, e.g. http://uri.etsi.org/19602/LoTEType/EUPIDProvidersList.

ISSUANCE_SERVICE_TYPE, REVOCATION_SERVICE_TYPE

The ServiceTypeIdentifier of the services that anchor the issuance and the revocation context. Default to the class’s, e.g. http://uri.etsi.org/19602/SvcType/PID/Issuance and .../Revocation.

26.47.5. EXAMPLE#

[kych-trust]
SERVE = tcp
BIND_TO = 127.0.0.1
PORT = 18090

@inline@ /etc/kych-trust/trust.conf

with /etc/kych-trust/trust.conf:

[trust-pid-providers]
CLASS = PID
LOTE_URL = https://trustedlist.serviceproviders.eudiw.dev/LOTE/json/PIDProviders.jwt
LOTE_SIGNER = /etc/kych-trust/signers/pidissuerca02_eu.pem

[trust-access-certificates]
CLASS = WRPAC
LOTE_URL = https://trustedlist.serviceproviders.eudiw.dev/LOTE/json/WRPACProviders.jwt
LOTE_SIGNER = /etc/kych-trust/signers/pidissuerca02_eu.pem

26.47.6. SEE ALSO#

kych-trust(1), kych-trust-dbinit(1), kych-trust-dbconfig(1), kych.conf(5).

26.47.7. BUGS#

Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.