{
  "schema_version": 1,
  "listener": {
    "mode": "direct_https",
    "bind_address": "127.0.0.1",
    "port": 8443,
    "external_base_url": "https://signing.example.invalid",
    "tls": {
      "file": "keys/tls.p12",
      "password_file": "secrets/tls-password",
      "alias": "https"
    }
  },
  "database": {
    "engine": "postgresql",
    "host": "postgres.example.invalid",
    "port": 5432,
    "name": "signing",
    "ssl_mode": "verify-full",
    "ca_file": "trust/postgresql-ca.pem",
    "runtime": {
      "username": "signing",
      "password_file": "secrets/database-password"
    },
    "migration": {
      "username": "signing_owner",
      "password_file": "secrets/database-migration-password"
    }
  },
  "saml_transport": {
    "file": "keys/saml-transport.p12",
    "password_file": "secrets/saml-password",
    "alias": "saml",
    "encryption_alias": "saml-encryption"
  },
  "access_configuration": "csc-access-connections.json",
  "service": "csc-v1",
  "clients": [
    {
      "client_id": "customer-app",
      "kid": "customer-requester-2026",
      "public_key_file": "trust/customer-requester.der",
      "display_name": "Registered customer application",
      "redirect_uris": [
        "https://customer.example.invalid/signing/callback"
      ],
      "connections": [
        "csc-access"
      ]
    }
  ],
  "identities": [
    {
      "connection": "csc-access",
      "subject_attribute": "urn:oid:1.2.752.29.4.13",
      "authentication_context": "http://id.elegnamnden.se/loa/1.0/loa3"
    }
  ],
  "credentials": [
    {
      "credential_id": "customer-signing-credential",
      "subject_reference": "saml-0000000000000000000000000000000000000000000000000000000000000000",
      "connection": "csc-access",
      "clients": [
        "customer-app"
      ],
      "certificate_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
      "enabled": true,
      "signing": {
        "backend": "pkcs12",
        "credential": "document-signing",
        "keystore": {
          "file": "keys/document.p12",
          "password_file": "secrets/document-password",
          "alias": "document"
        }
      }
    }
  ],
  "logo_url": "https://customer.example.invalid/signing-logo.png"
}
