26.28. eudi-verifier(1)#
26.28.1. Name#
eudi-verifier - EUDI reference verifier service for EU Digital Identity Wallets
26.28.2. Synopsis#
eudi-verifier [–PROPERTY=VALUE …]
26.28.3. Description#
eudi-verifier runs the European Commission’s reference verifier backend (eudi-srv-verifier-endpoint), the Spring Boot service that verifies what an EU Digital Identity Wallet presents over OpenID for Verifiable Presentations 1.0: an EU PID as an SD-JWT VC or as an ISO mdoc, its issuer’s signature and certificate chain, the holder binding to the request, and the revocation status. kych-oauth2-gateway(1) starts a transaction on its management API for every identification with the EU PID and polls it for the result; the person’s wallet fetches the request object from it and posts its response to it.
Upstream calls the verifier a development tool and advises against production use. KyCH runs it as one of three interchangeable helpers whose results its differential tests compare.
This program is a thin wrapper around java -jar
/usr/share/eudi-verifier/eudi-verifier.jar. It settles two things before
the JVM starts:
the Java runtime:
$JAVA_HOMEif it is set, else a Java 25 under/usr/lib/jvm, elsejavafrom$PATH;the client id for
VERIFIER_CLIENTIDPREFIX=x509_hash: unlessVERIFIER_ORIGINALCLIENTIDis set, it is computed from the access certificate in the keystore (base64url of the SHA-256 of its DER), with keytool and openssl. The verifier refuses to start if the two disagree.
Arguments are passed on to the application, so any Spring Boot property can
be given as --name=value. The package’s systemd unit runs it as user
eudi-verifier with group www-data, from the environment described
below.
26.28.4. Interfaces#
The verifier listens on one Unix domain socket, SERVER_UNIXSOCKET_PATH
(a patch of ours), with two interfaces behind it that belong on different
sides of a firewall:
/wallet/...The request objects (
/wallet/request.jwt/...) and the response endpoint (/wallet/direct_post/...) the wallets use. The reverse proxy publishes them over HTTPS atVERIFIER_PUBLICURL./ui/...,/utilities/...,/actuator/...The management API: creating transactions, reading their results and events, validating presentations, the health and version. It authenticates nobody, so it must be reachable by KyCH alone; the reverse proxy must not publish it. The example site in
/usr/share/eudi-verifier/nginx/eudi-verifier.confproxies/wallet/and nothing else of the socket.
26.28.5. Configuration#
All configuration is by environment variables, Spring Boot’s form of the
verifier’s properties (verifier.publicUrl is VERIFIER_PUBLICURL).
The unit reads, in this order:
/etc/eudi-verifier/eudi-verifier.envThe package’s defaults (a conffile).
/etc/eudi-verifier/local.envThe administrator’s settings, which override the defaults; also
EUDI_VERIFIER_JAVA_OPTS, options for the JVM (e.g.-Xmx512m)./etc/eudi-verifier/secrets/keystore.envVERIFIER_ACCESS_CERTIFICATE_KEYSTORE_PASSWORDandVERIFIER_ACCESS_CERTIFICATE_PASSWORD./etc/eudi-verifier/secrets/intended-uses.envOptional: registration certificates as
VERIFIER_INTENDEDUSES_N_ID,..._DESCRIPTION,..._REGISTRATIONCERTIFICATE(the JWS, on one line).
The settings that matter, with the package’s defaults:
SERVER_UNIXSOCKET_PATH=/run/eudi-verifier/http.sock,SERVER_UNIXSOCKET_PERMISSIONS=rw-rw----The socket, and its permissions once bound (otherwise the umask applies). The unit creates
/run/eudi-verifier; a stale socket is removed at start. Without the path, the verifier listens on TCP (SERVER_PORT,SERVER_ADDRESS).VERIFIER_PUBLICURLThe public HTTPS URL of the
/wallet/endpoints. Required; no default.VERIFIER_ACCESS_CERTIFICATE_KEYSTORE=file:///etc/eudi-verifier/secrets/access-certificate.p12,..._KEYSTORE_TYPE=pkcs12,..._ALIAS=access_certificate,..._SIGNING_ALGORITHM=ES256The relying party’s access certificate and its key, which sign the request objects.
VERIFIER_CLIENTIDPREFIX=x509_hashHow wallets identify the verifier:
x509_hash(HAIP; the client id is computed as above) orx509_san_dns(setVERIFIER_ORIGINALCLIENTIDto the certificate’s DNS name). KyCH’sCLIENT_ID_PREFIXmust agree.VERIFIER_TRUSTVALIDATOR_SERVICEURL=http://127.0.0.1:18090/trustkych-trust(1), which decides whether an issuer’s chain ends at a listed PID provider, and whether a status list’s signer is a listed revocation service. Without it the verifier trusts every issuer. Its HTTP client cannot use a Unix domain socket, hence loopback TCP.
VERIFIER_ATTESTATIONCLASSIFICATIONS_PID_VCTS,..._PID_DOCTYPESThe credential types that are PIDs: the base
vcturn:eudi:pid:1, the 27 domestic onesurn:eudi:pid:CC:1and the doctypeeu.europa.ec.eudi.pid.1, as KyCH’s vocabularies list them. A type that is not listed cannot be presented at all.VERIFIER_MAXAGE=PT15MHow long a transaction waits for the wallet; KyCH’s session lasts 15 minutes. Upstream’s default is 106 hours.
VERIFIER_PRESENTATIONS_CLEANUP_MAXAGE=PT1HWhen transactions, and the presentations in them, are deleted from memory. Upstream’s default is ten days.
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE=health,info/actuator/inforeports the version for KyCH’s evidence.
The verifier keeps every transaction in memory only. A restart loses those in flight; KyCH fails such a session, and the person starts again.
26.28.6. Patches#
The package builds upstream’s release with these patches
(eudi-verifier/patches/ in KyCH’s source):
the date format of upstream’s next release for mdoc data elements (ISO 8601 rather than epoch milliseconds), backported;
listening on a Unix domain socket;
building with any vendor’s JDK 25;
checking the signature of status lists: upstream accepts a status list token signed by anyone, so whoever answers at the status list’s URI could declare a revoked PID valid. The patched verifier requires the token’s
x5c(JWT) orx5chain(CWT) chain, verifies the signature with its leaf, and asks the Trust Validator whether the chain may sign the attestation’s status (PIDStatusfor a PID);publishing an event for responses refused before validation (one that cannot be decrypted, or in the wrong response mode), so that KyCH learns of them instead of waiting for the transaction to expire;
starting without configured intended uses, for a KyCH that sends the registration certificate with every transaction.
26.28.7. Files#
/usr/share/eudi-verifier/eudi-verifier.jarThe verifier.
/usr/share/eudi-verifier/nginx/eudi-verifier.confAn example nginx site that publishes
/wallet/only, with KyCH beside it./run/eudi-verifier/http.sockThe socket,
eudi-verifier:www-data 0660.
26.28.8. See Also#
kych-oauth2-gateway(1), kych.conf(5), kych-trust(1), kych-trust.conf(5), eu-digital-identity-wallet/eudi-srv-verifier-endpoint
26.28.9. Bugs#
Report bugs by using https://bugs.taler.net/ or by sending electronic mail to <taler@gnu.org>.