Skip to content

Issuer Configuration Reference

Every setting the credential issuance service accepts. server.json holds the settings of the server. The settings of its tenant — the issuer itself, with its signing key and display — are kept in its database: you give them when you create the tenant through the admin endpoints. A minimal setup is in Install the issuance service. See Settings for what is read when.

Server settings

server.json
{
  "port": 8079, // (1)!
  "baseUrl": "http://localhost:8079", // (2)!
  "database": { // (3)!
    "persistenceUnitName": "model",
    "driver": "org.postgresql.Driver",
    "url": "jdbc:postgresql://postgres:5432/issuer",
    "user": "postgres",
    "password": "postgres"
  },
  "admin": { // (4)!
    "apiKeys": {
      "Rw6X1Wc0rJm3lPpQ8nK2vYtZb7HsUaE4dFgL9oNiMcxBqT5yVhGjSzReAuIkDw0e": "Operations team"
    }
  },
  "metrics": { // (5)!
    "scrapeTokens": {
      "Q2sx3xVwz9oRMSk1UQBnkZMIJQ7bbEz8T6vdYJkTB3CvYaL4bMyTfrUZzcXfGl8x": "Prometheus"
    }
  }
}
  1. Required. REST endpoint port.
  2. Required. The address this service advertises to wallets. The wallet uses it to fetch the credential offer, the issuer metadata and the credential itself, so it must be reachable by the wallet — see Going to production.
  3. Required. PostgreSQL connection. See Database.
  4. Required. The keys of the admin endpoints, which create the tenant and manage it. The JSON key is the token, the value a label.
  5. Optional. Turns on the Prometheus endpoint GET /metrics, which a scrape reaches with one of these tokens. Omit it and /metrics answers 404. The JSON key is the token, the value a label. See Metrics.

A misspelled setting stops the service

An unrecognized key in server.json fails the start, and is named in the error, so a typo surfaces immediately rather than silently doing nothing.

Tenant settings

The body of POST /admin/tenants, which creates the tenant. Keys and certificates are PEM text, shortened here:

POST /admin/tenants
{
  "code": "example", // (1)!
  "display_name": "Example University", // (2)!
  "signing": { // (3)!
    "private_key": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----\n",
    "certificate_chain": [
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n",
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n"
    ]
  },
  "authorization_server": { // (4)!
    "base_url": "https://auth.example.org"
  },
  "session_callback": { // (5)!
    "target_url": "https://example-application.com/issued-credential",
    "bearer_token": "<a secret your application checks>"
  },
  "credential_offer_prefix": "haip-vci://", // (6)!
  "status_list_ttl": 600 // (7)!
}
  1. Required. The tenant's code, which names it in the paths of the admin endpoints and in the address of its status list, {baseUrl}/credential-status/status-list?tenant=example. Lower-case letters, digits and -, starting with a letter or a digit. Every credential the tenant issues carries this address, so choose the code before issuing.
  2. Optional. A name a wallet may show alongside the credentials you issue. See Issuer display.
  3. Required. The signing key and the certificate chain, leaf first, as PEM text. The chain is emitted as the x5c header of every credential. See Signing certificates.
  4. Optional. An external OAuth 2.0 authorization server. Omit it and the issuance service acts as the authorization server itself. Setting it changes how issuances start — see OAuth 2.0 integration.
  5. Optional. Where a copy of each issued credential is pushed. See Receive the issued credential.
  6. Optional. The scheme of the credential offer deep link handed to wallets. Defaults to haip-vci://. Change it only to match a wallet that registers a different scheme. The verifier has an equivalent, uri_prefix, set per verification query and defaulting to haip-vp://.
  7. Optional. How long, in seconds, a published status list token stays valid. Defaults to 600. See Revocation.

A new tenant has no API keys and no logo. Add them through the admin endpoints: API keys and Logo.

Issuer display

These values give a wallet something meaningful to show alongside the credentials you issue, instead of a bare identifier. Both are optional.

  • The name is display_name in the tenant's settings. Required if the tenant has a logo.
  • The logo is a PNG or JPEG image of at most 512 KB, set with PUT /admin/tenants/{code}/logo. The format is checked by the image's content. Use a square image, ideally 256 × 256 px or larger so it stays sharp on high-density screens. Wallets fetch it from {baseUrl}/static/logo/{logo_id}, which the credential issuer metadata advertises.

The verifier has an equivalent, shown to the holder on the consent screen. See Client metadata.