eIDAS 2.0 Compliance: EU Trusted List Validation¶
The FIWARE Data Space Connector supports
eIDAS 2.0
compliance through PKIX certificate chain validation against the
EU Trusted Lists (ETSI TS 119 612).
Starting with VCVerifier >= 6.22.0 this validation is performed natively by
VCVerifier. The configuration surface documented here needs
decentralized-iam >= 2.1.25, which is what chart 10.10.0 pins: 2.1.25 is the
first release whose vcverifier subchart spells the LOTL override lotlUrl, the
key the server actually reads.
Two mechanisms, different triggers¶
Carrying an x5c header is not by itself enough to get a credential
validated against the trust list. VCVerifier has two separate paths, and which
one applies depends on the issuer and the credential format:
| Trigger | Covers | Needs eidasConfig? |
Formats | |
|---|---|---|---|---|
1. did:elsi proof check |
iss is a did:elsi: DID |
The issuer-signed JWT's x5c chain, plus an organizationIdentifier (OID 2.5.4.97) ↔ DID match |
No | Any |
2. EidasValidationService |
The credential type carries eidasConfig.enabled: true |
The credential's x5c chain, with per-type country and qualified-service filters |
Yes | SD-JWT only |
Both require the verifier-wide eidas block to be enabled -- that is what
builds the trust store.
What this means in practice:
did:elsiissuers get trust-list validation automatically, for any format, as soon aseidas.enabledistrue. If the trust store is missing, the credential is rejected witheidas_trust_store_required_for_did_elsirather than silently accepted.did:weband HTTPS issuers resolve their signing key from the DID document or the issuer's JWKS. Thex5cheader, if present, is ignored by the proof check. The only way such a credential is validated against the trust list is mechanism 2 -- which means it has to be an SD-JWT and carryeidasConfig.- Mechanism 2 adds per-type control (
allowedCountries,requireQualified) that mechanism 1 has no equivalent for: thedid:elsipath searches all countries and applies no qualified-service filter.
The two compose. A did:elsi SD-JWT with eidasConfig goes through both, and
both have to pass.
eIDAS support is disabled by default and is strictly opt-in.
Table of Contents
- [Two mechanisms, different triggers](#two-mechanisms-different-triggers) - [Architecture](#architecture) - [Supported DID Methods and Issuance Approaches](#supported-did-methods-and-issuance-approaches) - [Validation Flow](#validation-flow) - [Configuration -- Provider (Verifier)](#configuration----provider-verifier) - [Enabling eIDAS Validation](#enabling-eidas-validation) - [Configuration Reference](#configuration-reference) - [Production vs. Test Settings](#production-vs-test-settings) - [Configuration -- Consumer (Issuer)](#configuration----consumer-issuer) - [Keycloak elsi Block](#keycloak-elsi-block) - [JAdES Plugin for x5c Header Injection](#jades-plugin-for-x5c-header-injection) - [Keystore Volume Mount](#keystore-volume-mount) - [Preparation -- Generating Test Certificates](#preparation----generating-test-certificates) - [Turning Validation On: `eidasConfig` per Credential Type](#turning-validation-on-eidasconfig-per-credential-type) - [Certificate Revocation](#certificate-revocation) - [Trust List Freshness](#trust-list-freshness) - [Local Deployment](#local-deployment) - [Mocking the EU Trusted List (local only)](#mocking-the-eu-trusted-list-local-only) - [Demo Flow](#demo-flow) - [Migration from DSS-based Approach](#migration-from-dss-based-approach) - [Troubleshooting](#troubleshooting)Architecture¶
eIDAS 2.0 support in the Data Space Connector involves two roles:
| Role | Component | Responsibility |
|---|---|---|
| Consumer (Issuer) | Keycloak + JAdES plugin | Issues Verifiable Credentials signed with an eIDAS certificate. The x5c JWT header carries the full certificate chain. The credential's iss claim can use did:elsi, did:web, or an HTTPS identifier. |
| Provider (Verifier) | VCVerifier | Validates incoming credentials that carry an x5c header by verifying the JWT signature against the certificate chain, then validating that chain against a trust store built from the EU List of Trusted Lists (LOTL). For did:elsi, the certificate's organizationIdentifier is additionally matched against the DID. |
Supported DID Methods and Issuance Approaches¶
Trust-list validation is reachable from more than one DID method, but not on the same terms -- see Two mechanisms:
| Approach | Identifier Example | How the chain gets validated |
|---|---|---|
did:elsi |
did:elsi:VATDE-1234567 |
Automatically, via the did:elsi proof check. Also requires the leaf's organizationIdentifier (OID 2.5.4.97) to match the DID. eidasConfig optionally layers per-type filters on top. |
did:web |
did:web:example.com |
Only via eidasConfig on an SD-JWT credential type. The signing key comes from the DID document and the x5c header is otherwise ignored. |
| HTTPS | https://issuer.example.com |
Only via eidasConfig on an SD-JWT credential type. The signing key comes from the issuer's JWKS. |
The examples in this document use did:elsi because it is the most
tightly coupled with eIDAS certificates. For did:web and HTTPS issuers, a
credential in any other format -- or without eidasConfig -- gets no
trust-list validation at all, however complete its x5c chain is.
Validation Flow¶
When VCVerifier receives a credential with an x5c header, it performs
the following steps:
Credential (JWT with x5c header)
|
v
1. Extract x5c certificate chain from JWT header
|
v
2. Verify JWT signature against the leaf certificate
|
v
3. (did:elsi only) Extract organizationIdentifier (OID 2.5.4.97)
from the leaf certificate's Subject DN and match against the
did:elsi identifier (e.g., did:elsi:VATDE-1234567 -> VATDE-1234567)
|
v
4. Validate the certificate chain (PKIX) against the trust store
built from the EU LOTL
|
v
5. (Optional) Check certificate revocation status via OCSP/CRL
|
v
Credential accepted or rejected
The trust store is built at startup by fetching the EU LOTL, parsing the national Trusted Lists it references, and extracting the certificates of Qualified Trust Service Providers. It is refreshed periodically in the background (see Trust List Freshness).
Configuration -- Provider (Verifier)¶
The provider runs VCVerifier, which validates incoming credentials carrying eIDAS certificate chains. Two configuration blocks are relevant:
decentralizedIam.vcAuthentication.vcverifier.deployment.elsi-- enables thedid:elsiDID method in the verifier (only needed when usingdid:elsi; not required fordid:webor HTTPS issuers).decentralizedIam.vcAuthentication.vcverifier.deployment.eidas-- configures the built-in PKIX trust list validation (required for all eIDAS approaches).
Enabling eIDAS Validation¶
Minimal values.yaml overlay to enable eIDAS validation with did:elsi:
decentralizedIam:
vcAuthentication:
vcverifier:
deployment:
elsi:
# Enable did:elsi DID method support (omit if using did:web or HTTPS)
enabled: true
eidas:
# Enable built-in eIDAS 2.0 trust list validation
enabled: true
When eidas.enabled is true, VCVerifier fetches the EU LOTL at startup and
builds a trust store from it. No external validation service is needed.
Note
For a did:elsi issuer this is already enough -- the proof check validates
the chain on the issuer DID alone. For a did:web or HTTPS issuer it is
not: their x5c header is ignored by the proof check, so the credential has
to be an SD-JWT carrying eidasConfig before anything is checked. See
Turning Validation On.
eidasConfig is also what adds per-type country and qualified-service filters,
which did:elsi deployments otherwise do not get.
Note
The elsi.enabled toggle is only needed when the issuer uses
the did:elsi DID method. For did:web or HTTPS-issued credentials,
only the eidas block is required.
Configuration Reference¶
All values live under decentralizedIam.vcAuthentication.vcverifier.deployment.eidas:
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
bool | false |
Starts the trust-list fetcher and builds the trust store. Required for any eIDAS verification, but not sufficient -- see Turning Validation On. With it false, a per-credential eidasConfig is rejected with HTTP 400. |
lotlUrl |
string | "" (official EU LOTL) |
URL of the EU List of Trusted Lists. When empty, defaults to https://ec.europa.eu/tools/lotl/eu-lotl.xml. |
refreshInterval |
int | 86400 |
Interval in seconds between background LOTL refreshes. Clamped to [3600, 604800] -- a smaller value is silently raised to one hour. A failed fetch is not retried before the next interval, so this also bounds how long a verifier that started without a reachable trust list stays unusable. |
countries |
list | [] (all EU) |
ISO 3166-1 alpha-2 country filter. Empty list means all EU member states. Example: ["DE", "ES", "FR"]. |
maxWorkers |
int | 5 |
Number of concurrent workers for fetching national trust lists. |
fetchTimeout |
int | 30 |
HTTP timeout in seconds for each individual trust list fetch. |
allowStaleTrustLists |
bool | false |
Accept trust lists past their NextUpdate timestamp. Set to true only in environments with unreliable internet connectivity. |
statusEvaluation |
string | "current" |
When to evaluate a trust service's status: "current" (at verification time) or "issuance" (at credential issuance time). |
revocationCheck |
string | "soft" |
OCSP/CRL revocation checking mode. See Certificate Revocation. |
revocationTimeout |
int | 10 |
HTTP timeout in seconds for OCSP/CRL requests. |
revocationCacheExpiry |
int | 3600 |
Cache lifetime in seconds for revocation check results. |
Production vs. Test Settings¶
| Setting | Production | Local / Test |
|---|---|---|
revocationCheck |
"soft" or "hard" |
"off" -- test certs lack reachable OCSP/CRL endpoints. This does not make a self-signed chain trusted; that needs the mock LOTL. |
allowStaleTrustLists |
false |
true (acceptable when testing offline) |
countries |
filter to relevant countries | [] (all) |
lotlUrl |
default (official EU LOTL) | the in-cluster mock, see Demo Flow |
See the k3s/provider-eidas.yaml overlay for a complete local-deployment example.
Configuration -- Consumer (Issuer)¶
The consumer runs Keycloak, which issues Verifiable Credentials signed with
an eIDAS certificate. The x5c JWT header carries the full certificate
chain. The credential's iss claim can use did:elsi, did:web, or an
HTTPS identifier -- the examples below use did:elsi.
Keycloak elsi Block¶
The elsi block in values.yaml (top-level, alongside keycloak) configures
the keystore and DID used for did:elsi credential issuance:
elsi:
# Enable did:elsi credential issuance
enabled: true
# Path inside the Keycloak container where the signing keystore is located.
# Since KC 26.6.4, the java-keystore provider only reads from
# /opt/keycloak/data/<realm-name>/
storePath: /opt/keycloak/data/test-realm/keystore.p12
# Keystore password
storePassword: password
# Alias of the signing key inside the keystore
keyAlias: test-keystore
# Password of the signing key
keyPassword: password
# Signing algorithm (RS256 for RSA keys)
keyAlgorithm: RS256
# The did:elsi DID — the organisationIdentifier must match the certificate
did: did:elsi:VATDE-1234567
# The keystore content (base64-encoded PKCS#12)
keystore:
keystore.p12: <BASE64_ENCODED_KEYSTORE>
This creates a Kubernetes Secret with the keystore and configures the
Keycloak realm template
to use did:elsi with the corresponding java-keystore key provider.
Important
Since Keycloak 26.6.4, the java-keystore realm key
provider only reads keystores from /opt/keycloak/data/<realm-name>/.
Both storePath and the container's volume mount must point inside that
directory.
JAdES Plugin for x5c Header Injection¶
Standard Keycloak OID4VCI issuance does not include the x5c
certificate chain header in issued JWTs. The
keycloak-jades-vc-issuer
plugin supplies it, and VCVerifier's PKIX chain validation reads it.
Since 1.3.0 the plugin signs credentials as JAdES baseline-B
(ETSI TS 119 182-1), not merely as a JWT with an extra header: the protected
header carries the signing time and the certificate digest alongside x5c.
It replaces Keycloak's own builder and signer for the formats it serves, and
delegates back to them for credentials that switch JAdES off.
| Format | Default | Why |
|---|---|---|
jwt_vc_json |
JAdES | Keycloak's JWT signer writes no x5c at all, so eIDAS validation would have nothing to check |
dc+sd-jwt |
Keycloak | Keycloak already adds x5c to SD-JWT itself, so JAdES adds only the signing time |
Set jades.enabled on a credential's client scope to override the default
per credential type:
keycloak:
realm:
verifiableCredentials:
user-credential:
attributes:
# eIDAS validation is SD-JWT only
format: "dc+sd-jwt"
# "false" hands this credential back to Keycloak's own signer, which writes a
# leaf+intermediate x5c and no signing time
jades.enabled: "true"
jades.enabled is read raw by the plugin, not as a vc.-prefixed Keycloak
credential attribute. The chart's _realm.tpl keeps it unprefixed for exactly
that reason (dsc.vcScopeUnprefixedAttributes); writing vc.jades.enabled
yourself would hide it from the plugin.
Note
1.3.0 requires Keycloak 26.7.x. The OID4VCI signing SPI was
rewritten after 26.4, and the plugin's provided dependency set is pinned to
what that server ships -- a second copy of a library the server already has
breaks the Quarkus build at startup.
Add the plugin via an init container in the Keycloak configuration:
keycloak:
extraInitContainers:
- name: install-jades-issuer
image: quay.io/fiware/keycloak-jades-vc-issuer:1.3.0
imagePullPolicy: IfNotPresent
volumeMounts:
- name: providers
mountPath: /target
See the k3s/consumer-eidas.yaml overlay for the complete init container, volume, and volume-mount configuration.
Keystore Volume Mount¶
The eIDAS signing keystore must be mounted into the Keycloak container.
The chart's
elsi-secret.yaml
template creates the Secret from the elsi.keystore values. It is then
mounted via Keycloak's extraVolumeMounts and extraVolumes:
keycloak:
extraVolumeMounts:
- name: elsi-trust-store
mountPath: /opt/keycloak/data/test-realm
extraVolumes:
- name: elsi-trust-store
secret:
secretName: elsi-secret
defaultMode: 0755
Important
The mountPath must match your realm name --
/opt/keycloak/data/<your-realm-name>/. The example above uses
test-realm. If your realm is named differently (e.g., my-realm),
change the path to /opt/keycloak/data/my-realm. This is a KC 26.6.4
restriction -- the java-keystore provider only reads from that path.
Preparation -- Generating Test Certificates¶
For local or test environments, a valid eIDAS certificate chain can be generated using the FIWARE/eIDAS tool.
Steps¶
-
Create a working directory:
-
Create a config file:
cat > output/config << 'EOF' COUNTRY="DE" LOCALITY="Berlin" STATE="Berlin" # The organisation identifier must match the did:elsi identifier ORGANISATION_IDENTIFIER="VATDE-1234567" ORGANISATION="Test org" COMMON_NAME="Test" EMAIL="test@test.org" # For local testing, point to a reachable CRL endpoint. # In the k3s local deployment, the CRL is not needed (revocationCheck: "off"). CRL_URI=http://localhost:3000/crl.pem EOF -
Generate the key material:
-
Base64-encode the outputs for use in Helm values files:
-
Extract the root CA for the mock trust list (local deployments only):
Note
In production VCVerifier builds its trust store from the official
EU Trusted Lists and needs nothing from this tool on the provider side. A
local deployment is different: the generated CA is self-signed and therefore
in no national trust list, so the root certificate has to be placed in a mock
trust list -- see Mocking the EU Trusted List.
The CRL (crl.pem) is still not needed, since local deployments run with
revocationCheck: "off".
Certificate Requirements¶
For VCVerifier's PKIX validation to succeed, the leaf certificate must:
- Chain up to a CA that appears in one of the EU Trusted Lists.
revocationCheckhas no bearing on this: turning it"off"only skips the OCSP/CRL lookup, it does not make an untrusted or self-signed chain acceptable. A locally generated test CA is in no national list, so a local deployment has to put its root into a mock trust list -- see Mocking the EU Trusted List. - Include the full certificate chain in the
x5cJWT header when the credential is issued. - When using
did:elsi: contain theorganizationIdentifierattribute (OID 2.5.4.97) in the Subject DN, matching the DID identifier.
Turning Validation On: eidasConfig per Credential Type¶
The eidas block from the previous section starts the trust-list fetcher and
builds the trust store. For a did:elsi issuer that is already enough: the
proof check validates the chain automatically. For every other issuer scheme
it is not -- EidasValidationService looks its configuration up per credential
type, and for a type that carries none it returns pass-through without touching
the trust store.
So a deployment whose issuers are did:web or HTTPS, with eidas.enabled: true
and no eidasConfig, fetches the EU Trusted Lists on every refresh and never
consults them -- and, because nothing fails, looks exactly like a working one.
eidasConfig is also the only way to get per-type country and qualified-service
filters, which the did:elsi path does not offer.
The two settings are not interchangeable:
| Setting | Scope | What it does |
|---|---|---|
...vcverifier.deployment.eidas.enabled |
verifier-wide | Starts the trust-list fetcher and builds the trust store. Precondition for both mechanisms. With it false, a did:elsi credential is rejected with eidas_trust_store_required_for_did_elsi, and a per-credential eidasConfig is rejected at config-validation time with HTTP 400. |
eidasConfig.enabled |
one credential type | Runs EidasValidationService on that type: required for non-did:elsi issuers, and the only source of per-type allowedCountries / requireQualified filters. SD-JWT only. |
eidasConfig is set on the credential inside the verifier's service
registration (or directly in the
Credentials Config Service):
decentralizedIam:
vcAuthentication:
vcverifier:
registration:
services:
- id: data-service
defaultOidcScope: "default"
oidcScopes:
"default":
credentials:
- type: UserCredential
trustedIssuersLists:
- http://trusted-issuers-list:8080
eidasConfig:
# validate this credential type against the trust store
enabled: true
# ISO 3166-1 alpha-2; empty falls back to the global `countries`
allowedCountries:
- DE
# defaults to true when absent: the issuing CA must be listed under a
# qualified service type AND the leaf must carry a QcCompliance statement
requireQualified: true
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
bool | false |
Validate this credential type against the EU Trusted Lists. |
allowedCountries |
list | [] |
Restricts which national lists are consulted for this type. Empty falls back to the verifier-wide countries. |
requireQualified |
bool | true |
Accept only qualified trust services (CA/QC, NationalRootCA/QC) and require the leaf certificate to declare a QcCompliance qcStatement. Set to false for a non-qualified CA. |
The format constraint: SD-JWT only¶
eIDAS validation is implemented for SD-JWT (dc+sd-jwt) and for nothing else.
A credential of any other format -- jwt_vc_json in particular -- that has
eidasConfig.enabled: true is rejected outright with
ErrorEidasSDJWTRequired. It is not silently skipped and it is not accepted.
So an eIDAS deployment issues its credentials as dc+sd-jwt, and the DCQL query
that asks for them matches on meta.vct_values (a flat array) rather than the
meta.type_values (array of arrays) that jwt_vc_json uses.
x5c and the trust anchor¶
Two signers produce a different x5c for SD-JWT, and both validate:
| Signer | x5c contents |
Why |
|---|---|---|
Keycloak's own SdJwtCredentialSigner |
leaf + intermediate | HAIP-6.1.1 requires the trust anchor not to be in x5c; Keycloak strips the trailing self-signed certificate. |
keycloak-jades-vc-issuer with jades.enabled: "true" |
leaf + intermediate + root | Writes the realm key's full chain, and adds the JAdES signing time. |
PKIX chain building takes the root from the trust store either way, so the shorter chain is not a problem. The local overlay forces JAdES because the signing time is part of what makes the signature an eIDAS advanced electronic signature.
Note
jades.enabled is not a vc.-prefixed Keycloak credential
attribute -- the plugin reads it raw. The chart keeps it unprefixed for that
reason; see dsc.vcScopeUnprefixedAttributes in _realm.tpl.
Certificate Revocation¶
The revocationCheck setting controls how VCVerifier handles OCSP and CRL
revocation checking for certificates in the x5c chain:
| Mode | Behavior |
|---|---|
"off" |
No revocation checking. Use only for local testing with self-signed certificates that lack OCSP/CRL endpoints. |
"soft" |
Best-effort revocation checking. If OCSP/CRL endpoints are unreachable or time out, the certificate is accepted. This is the default and is recommended for production. |
"hard" |
Fail-closed revocation checking. If OCSP/CRL endpoints are unreachable or time out, the certificate is rejected. Use when strict compliance is required and OCSP/CRL infrastructure is guaranteed to be available. |
Related settings:
revocationTimeout-- HTTP timeout in seconds for OCSP/CRL requests (default:10).revocationCacheExpiry-- How long (in seconds) to cache a revocation check result before re-checking (default:3600).
Trust List Freshness¶
VCVerifier fetches the EU List of Trusted Lists (LOTL) at startup and refreshes it periodically. The following settings control this behavior:
| Setting | Default | Description |
|---|---|---|
refreshInterval |
86400 (24 hours) |
How often (in seconds) to re-fetch the LOTL and rebuild the trust store. Values below 3600 are clamped to one hour. |
allowStaleTrustLists |
false |
Whether to accept trust lists whose NextUpdate timestamp is in the past. When false, an expired trust list causes the affected certificates to be untrusted until a fresh list is obtained. |
lotlUrl |
"" (official EU LOTL) |
Override the LOTL URL. Useful for testing with a mock trust list. |
Operational considerations:
- The initial trust store build happens during VCVerifier startup. If the LOTL or national lists are unreachable, startup will succeed but the trust store will be empty, causing all eIDAS-validated credentials to be rejected.
- The
countriesfilter (e.g.,["DE", "ES"]) reduces startup time and memory usage by only fetching trust lists for the specified countries. maxWorkerscontrols how many national trust lists are fetched in parallel (default:5). Increase for faster startup in production; decrease if the network has strict rate limits.
Local Deployment¶
Once the provider and consumer are configured (see sections above), deploy the eIDAS-enabled data space locally:
This uses the Maven eidas profile, which applies the
k3s/provider-eidas.yaml and
k3s/consumer-eidas.yaml overlay files on
top of the base configuration.
All commands below go through the squid proxy the local deployment brings
up (-x localhost:8888), so that in-cluster and host-side name resolution
match. -k is needed because the local certificates are issued by the
cluster's self-signed CA.
Mocking the EU Trusted List (local only)¶
PKIX validation only accepts a certificate chain that terminates in a CA the trust store knows. The trust store is built from the EU List of Trusted Lists, and a locally generated test CA is -- by definition -- not in it. Against the official LOTL, every locally issued credential is therefore rejected, no matter how the deployment is configured.
A local demo consequently needs a mock LOTL that declares the test CA a granted qualified CA. The eIDAS overlay ships one:
| Document | Role |
|---|---|
lotl.xml |
List of Trusted Lists, pointing at a single national list |
tl-de.xml |
National list (territory DE) carrying the test CA as CA/QC, status granted |
Both live as ConfigMap entries in the extraManifests block at the end of
k3s/provider-eidas.yaml -- that is the only
copy, so edit them there. A small static web server defined in the same block
serves them in-cluster, and the verifier is pointed at it:
decentralizedIam:
vcAuthentication:
vcverifier:
deployment:
eidas:
enabled: true
lotlUrl: "http://eidas-trust-list-mock:3000/lotl.xml"
After regenerating the test material, the certificate in tl-de.xml has to be
replaced with the new root CA:
VCVerifier does not verify the XMLDSig signature on trust lists -- a documented
limitation of its eidas package -- so the mock is served unsigned.
Warning
Never point a production deployment at a mock trust list. It declares an
arbitrary CA qualified, which removes the entire assurance that eIDAS
validation exists to provide. Production leaves lotlUrl unset so the
official EU LOTL is used.
Demo Flow¶
This walks an eIDAS credential end to end: the consumer's Keycloak issues a
credential signed with an eIDAS certificate, and the provider's VCVerifier
accepts it after validating the x5c chain. It is the standard OID4VP flow
from LOCAL.md -- the
eIDAS-specific parts are steps 3 and 4.
1. Confirm the verifier started¶
VCVerifier builds its trust store at startup. If it cannot start, nothing downstream works:
A healthy verifier reports what it loaded into the trust store:
TrustListFetcher: starting initial fetch from http://eidas-trust-list-mock:3000/lotl.xml
TrustListFetcher: found 1 national TLs (1 after country filter)
TrustListFetcher: refresh complete, 1 countries loaded, 1 total services
1 total services is the mock's test CA. If it says 0 total services, the
trust store is empty and every credential will be rejected in step 6 -- the
verifier starts perfectly happily either way, which is why this is worth
checking first. These lines are logged at INFO; at the default WARN the
startup is silent.
Two startup failures are also worth recognising:
| Log message | Cause |
|---|---|
Failed to initialize verifier: no_did_configured |
verifier.did is empty or unresolved |
Failed to initialize verifier: request_mode_not_in_supported_modes |
requestMode is not one of supportedModes |
2. Confirm the protected endpoint rejects anonymous access¶
curl -k -x localhost:8888 -s -o /dev/null -w '%{http_code}\n' \
'https://mp-data-service.127.0.0.1.nip.io/ngsi-ld/v1/entities/urn:ngsi-ld:EnergyReport:fms-1'
Expected: 401. A 404 with {"error_msg":"404 Route Not Found"} means
APISIX loaded no routes; a plain 404 page not found comes from Traefik and
means the ingress has no HTTPS router.
The endpoint advertises how to authenticate:
export TOKEN_ENDPOINT=$(curl -k -x localhost:8888 -s \
'https://mp-data-service.127.0.0.1.nip.io/.well-known/openid-configuration' \
| jq -r '.token_endpoint'); echo ${TOKEN_ENDPOINT}
3. Issue a credential from the consumer¶
get_credential.sh runs the full OID4VCI pre-authorized-code flow: it logs
the user in, creates a credential offer, redeems the pre-authorized code and
requests the credential.
export ELSI_CREDENTIAL=$(./doc/scripts/get_credential.sh \
https://keycloak-consumer.127.0.0.1.nip.io user-credential test-user)
echo "${ELSI_CREDENTIAL}"
The third argument is the user the credential is issued to; it is required.
user-credential, operator-credential and verifiable-credential are the
three configurations the eIDAS overlay declares.
If this answers
400 invalid_credential_offer_requestwith "User 'test-user' does not have verifiable credential 'user-credential'", the realm was imported withoutkeycloak.realm.wallets.issueCredentialsToUsers: true. Keycloak does not re-import an existing realm, so the realm has to be recreated after adding it.
4. Verify the eIDAS properties of the credential¶
This is what distinguishes the eIDAS flow from the standard one. Decode the JWT header and check that the certificate chain travelled with the credential:
echo "${ELSI_CREDENTIAL}" | cut -d '.' -f1 | tr '_-' '/+' \
| awk '{print $0 "=="}' | base64 -d 2>/dev/null \
| jq '{alg, typ, iat, x5c_chain_length: (.x5c | length)}'
x5c carries the leaf, intermediate and root certificates that VCVerifier
validates against the trust list. If x5c is absent, the JAdES plugin is not
installed on the consumer's Keycloak -- see
JAdES Plugin for x5c Header Injection.
iat is the signing time, which is what distinguishes a JAdES baseline-B
signature from a plain JWS -- together with x5c and the x5t#o certificate
digest. Older JAdES carried the signing time as sigT and listed it in crit;
since ETSI TS 119 182-1 v1.2 it is the registered iat claim and needs no
crit entry, so nothing in the header forces a verifier to understand JAdES.
alg follows elsi.keyAlgorithm, and typ comes from the credential's
credential_build_config.token_jws_type.
To check the chain against the trust list without involving the verifier, extract the three certificates and the trust list's CA, then verify:
for i in 0 1 2; do
echo "${ELSI_CREDENTIAL}" | cut -d '.' -f1 | tr '_-' '/+' | awk '{print $0 "=="}' \
| base64 -d 2>/dev/null | jq -r ".x5c[$i]" | base64 -d \
| openssl x509 -inform DER -out chain$i.pem
done
sed -n '/<X509Certificate>/,/<\/X509Certificate>/p' k3s/provider-eidas.yaml \
| sed '1d;$d' | tr -d ' \n' | base64 -d | openssl x509 -inform DER -out tl-ca.pem
openssl verify -CAfile tl-ca.pem -untrusted chain1.pem chain0.pem
A simpler equivalent: the root in the credential's x5c[-1] must be
byte-identical to the certificate in
the tl-de.xml entry of k3s/provider-eidas.yaml. If they differ,
the trust list was built from a different run of the certificate tool than the
keystore in k3s/consumer-eidas.yaml, and the verifier rejects the credential
with certificate does not chain to any trusted service.
Then check that the issuer is the did:elsi DID:
SD-JWT carries the credential type in the flat vct claim; the vc.type array
is the jwt_vc_json shape, which eIDAS validation does not accept.
The identifier after did:elsi: must equal the organizationIdentifier
(OID 2.5.4.97) in the leaf certificate's Subject DN -- that is the match
VCVerifier performs in step 3 of the
Validation Flow. To read it from the certificate:
echo "${ELSI_CREDENTIAL}" | cut -d '.' -f1 | tr '_-' '/+' \
| awk '{print $0 "=="}' | base64 -d 2>/dev/null | jq -r '.x5c[0]' \
| base64 -d | openssl x509 -inform DER -noout -subject
5. Create a holder DID¶
The credential is presented in a Verifiable Presentation signed by the holder, so a holder key is needed. This is the consumer-side wallet identity and has nothing to do with the eIDAS certificate:
mkdir -p cert
chmod o+rw cert
docker run -v $(pwd)/cert:/cert quay.io/wi_stefan/did-helper:0.1.1
# unsecure, only do that for demo
sudo chmod -R o+rw cert/private-key.pem
export HOLDER_DID=$(jq -r '.id' cert/did.json); echo ${HOLDER_DID}
6. Exchange the credential for an access token¶
get_access_token_oid4vp.sh wraps the credential in a Verifiable
Presentation, signs it with the holder key and posts it to the verifier as a
vp_token grant. It is here that VCVerifier performs the eIDAS validation:
export ACCESS_TOKEN=$(./doc/scripts/get_access_token_oid4vp.sh \
https://mp-data-service.127.0.0.1.nip.io "${ELSI_CREDENTIAL}" default)
echo ${ACCESS_TOKEN}
If the token comes back null, the verifier rejected the credential. Its log
says why:
See Troubleshooting for the common causes -- with test certificates the usual one is that the issuing CA is not in the EU Trusted Lists.
7. Access the protected data¶
curl -k -x localhost:8888 -s \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
'https://mp-data-service.127.0.0.1.nip.io/ngsi-ld/v1/entities/urn:ngsi-ld:EnergyReport:fms-1' \
| jq
The same request returned 401 in step 2, so a 200 here means the whole
chain held: the credential was signed with an eIDAS certificate, its x5c
chain validated against the trust store, the organizationIdentifier
matched the did:elsi issuer, and the provider's policy granted access.
The entity and the access policy have to exist for this step. Creating them is not eIDAS-specific -- see The Data Provider in
LOCAL.md.
8. Confirm that validation actually bites¶
A demo that only shows the happy path proves little -- and a credential refused by the trusted-issuers list proves nothing about the trust list, because that is a different check entirely.
The eIDAS overlay therefore registers a second scope,
eidas-unlisted-country, that differs from default in exactly one field:
its eidasConfig.allowedCountries is ["FR"], and the mock national list is
territory DE. Present the very same credential against it:
./doc/scripts/get_access_token_oid4vp.sh \
https://mp-data-service.127.0.0.1.nip.io "${ELSI_CREDENTIAL}" eidas-unlisted-country
It must come back empty while step 6 succeeded. Same credential, same issuer,
same policy, same trusted-issuers list -- the only thing that changed is which
national trust list the verifier was allowed to look in. That is the one
observation that distinguishes "the chain was validated" from "the check was
skipped", and it is what it/src/test/resources/it/eidas.feature asserts.
The verifier's log names the reason:
Migration from DSS-based Approach¶
If your deployment previously used the external dss-validation-service for
eIDAS certificate validation (chart versions < 10.10.0), follow these steps to
migrate to VCVerifier-native trust list validation.
Prerequisites¶
- decentralized-iam >= 2.1.25 (VCVerifier >= 6.23.1) — included in chart
version 10.10.0 and later. The feature itself exists from 2.1.23 /
VCVerifier 6.22.0, but
lotlUrlis only settable from 2.1.25. - Familiarity with your existing
dss:configuration block and any custom overlays that deploy the DSS sidecar.
Migration Steps¶
- Enable VCVerifier-native eIDAS validation. Add the
eidasblock to your values overlay:
See Enabling eIDAS Validation for the full minimal overlay and Configuration Reference for all available settings.
-
Remove or leave the
dss:block. ThedecentralizedIam.vcAuthentication.dssblock is deprecated. Wheneidas.enabledistrue, VCVerifier ignores the DSS configuration entirely. You may remove the block now or leave it for a transitional period — it has no effect. -
Remove DSS infrastructure from overlays. Delete the following from your custom values files and deployment overlays:
dss-validation-serviceDeployment / container definitions- DSS-related Secrets and ConfigMaps (keystores, CRL stores)
- CRL-update sidecar or CronJob (if present)
-
Any
ServiceorIngressexposing the DSS endpoint -
Remove
verifier.elsi.validationEndpoint. This setting previously pointed VCVerifier at the external DSS service. It is no longer needed — validation is built-in wheneidas.enabledistrue. -
Keep the
keycloak-jades-vc-issuerinit container (consumer side). The JAdES plugin is still required on the consumer's Keycloak to inject thex5ccertificate chain header into issued credentials. See JAdES Plugin for x5c Header Injection. -
Tune environment-specific settings. Adjust these values for your deployment:
revocationCheck—"soft"for production,"off"for local testing (see Certificate Revocation)refreshInterval— how often to re-fetch the LOTL (default: 24 hours)countries— filter to only the EU member states you need
Before / After Comparison¶
| Before (< 10.10.0) | After (>= 10.10.0) |
|---|---|
decentralizedIam.vcAuthentication.dss block with DSS endpoint URL |
decentralizedIam.vcAuthentication.vcverifier.deployment.eidas block |
External dss-validation-service Deployment + Service |
No external service — VCVerifier validates natively |
| CRL-update sidecar or CronJob for revocation data | Built-in OCSP/CRL checks via revocationCheck setting |
verifier.elsi.validationEndpoint pointing to DSS |
Removed — automatic when eidas.enabled: true |
keycloak-jades-vc-issuer init container |
Retained — still needed for x5c header injection |
Rollback¶
Reverting to the DSS-based approach is not a values-only change.
verifier.elsi.validationEndpoint no longer exists anywhere in the bundled
charts -- vcverifier 4.13.0 dropped the key:
So a rollback means pinning the whole decentralized-iam dependency back to a
version that still ships it (< 2.1.23), not just restoring the dss: block.
Concretely:
- Pin
decentralized-iamto2.1.22incharts/data-space-connector/Chart.yamland re-runhelm dependency update. - Set
eidas.enabled: false(or remove theeidas:block). - Restore the
dss:block andverifier.elsi.validationEndpoint. - Re-deploy the
dss-validation-serviceand CRL infrastructure. - Switch the credentials back to
jwt_vc_jsonand removeeidasConfig-- the DSS-based path did not use either.
Troubleshooting¶
Common Error Scenarios¶
| Error | Cause | Resolution |
|---|---|---|
| Everything passes, but validation never ran | The credential type carries no eidasConfig, so EidasValidationService is a pass-through |
Set eidasConfig.enabled: true on the credential type. Prove it bites by presenting the same credential under a scope whose allowedCountries no trust service matches -- it must be refused |
credential format is "jwt_vc_json" but eIDAS requires "dc+sd-jwt" |
eIDAS validation is SD-JWT only | Issue the credential as dc+sd-jwt and match it in DCQL with meta.vct_values |
| Credential rejected with no trust store | eidas.enabled is false or the LOTL was unreachable at startup |
Set eidas.enabled: true and verify network connectivity to the EU LOTL URL |
organizationIdentifier mismatch (did:elsi only) |
The did:elsi identifier does not match OID 2.5.4.97 in the leaf certificate |
Regenerate the certificate with the correct ORGANISATION_IDENTIFIER matching the DID |
| Certificate chain validation failed | The issuing CA is not in the trust store, or the countries filter excludes it |
Check the countries setting. With locally generated certificates the CA is never in the real EU LOTL -- point lotlUrl at the mock trust list and make sure it carries the current root CA (see Mocking the EU Trusted List) |
| Revocation check failed | OCSP/CRL endpoint unreachable with revocationCheck: "hard" |
Switch to "soft" or ensure OCSP/CRL endpoints are reachable; for local testing use "off" |
| Stale trust list rejected | A national trust list's NextUpdate is in the past and allowStaleTrustLists: false |
Set allowStaleTrustLists: true or investigate why the trust list is not being refreshed |
| Slow VCVerifier startup | Fetching all EU national trust lists takes time | Use countries filter to limit to relevant countries; increase maxWorkers for faster parallel fetching |
Missing x5c header in credential |
JAdES plugin not installed on consumer Keycloak | Add the install-jades-issuer init container (see JAdES Plugin) |
TrustListFetcher: ... lookup eidas-trust-list-mock ... no such host |
The mock trust list server is not in the verifier's namespace | Its manifests need metadata.namespace: {{ .Release.Namespace }}; without it they are applied to default |
Was not able to read the key file from . |
verifier.clientIdentification.keyPath is unset |
Harmless in urlEncoded request mode, which needs no request-signing key. Only byValue and byReference require one |
Debugging Tips¶
- Check VCVerifier logs for trust store build status at startup.
- Use
helm templatewith your values to verify theeidasblock appears in the VCVerifier configmap. - Decode the credential JWT at jwt.io to verify the
x5cheader is present and theissclaim matches the expected DID or issuer URL. - For test certificates (self-signed), always use
revocationCheck: "off".