Retrieving and verifying X-Road signed documents (ASiC)

Signed request and response containers from the X-Road asic service record what was exchanged. This page explains how to retrieve them by query ID, verify them with asicverifier and keep them usable in disputes or audits.

On this page

Retrieving and verifying X-Road signed documents for disputes and audits

When a dispute or audit asks what was exchanged through X-Road, the answer usually sits in the signed request and response containers that the asic service produces for each exchange. These are ASiC (Associated Signature Containers) files. The Security Server user guide is the place to confirm how the documentation describes their structure and which query ID retrieves each one. CISOs and compliance leads need to know what evidence exists and how defensible it is, while operators who receive the request must produce the right files on a deadline. Retrieval and verification are separate steps. Downloading a container shows only that a file exists, while asicverifier checks whether its signatures and contents hold together. Keep both steps in one written procedure so that no one treats a downloaded file as proof on its own.

Before a request arrives, decide who holds retrieval rights on the asic service, where verified copies are stored, and how the chain of custody is recorded from download to hand-over. Record the asicverifier version and the trust material it was run against, because a verification result is only as useful as the documented inputs behind it. The current X-Road release is 7.8.3, but confirm which release your Security Servers run and check the asicverifier command syntax, input options and output format in the documentation for that release. Also confirm whether the containers depend on the message log mode chosen for the Security Server, so the team knows what was recorded before a dispute reaches it. Ask the operator whether any retention period applies to the containers and plan an export before it could matter.

DeployOpen can prepare this process for your environment: a written retrieval and verification runbook, a rehearsal of the steps on a Security Server you control, and an evidence pack that records what was retrieved, how it was checked and who handled it. DeployOpen does not issue audit reports, attestations or legal opinions. Independent auditors decide whether a control was operating as described, and courts or arbitrators decide how much weight a signed container carries in a particular dispute. The runbook should name the owner who answers each question, and your legal counsel should review it before anyone relies on it.

Which signed documents to retrieve and where to verify them

This table compares the choices a team makes before its first retrieval of signed containers: which container to fetch, where verification runs, where containers are kept and who performs the check. Read each row as one option, and weigh the effort and access it needs against the chain of custody risk it carries. Confirm the container types and verifier behavior for your release line before you commit to a design.

Decision and optionWhen it fitsEffort or accessChain of custody risk
Request containerThe dispute concerns what the requesting member sent or asked forNeeds the query ID and access to the requester's Security Server recordsCovers the request side only, so pair it with the response when the dispute concerns the answer
Response containerThe dispute concerns what the provider returned or whether the exchange completedRetrieved from the provider's side, so access to that Security Server or its operator is neededHolds the provider's signed answer; agree in writing who retrieves it and when
Verify on production Security ServerQuick checks during an active incident, where the team already operates the serverLeast copying, and no separate environment to build or maintainVerification touches the live system that holds current logs; limit access and record who verified
Verify on exported copy in a separate environmentFormal disputes, audits, or any case where the original server must stay unchangedNeeds export steps, a separate verification host and a documented transferShow copy integrity by hashing at export and at each handoff; confirm the method with your assessor
Keep containers in archive storageRecurring retention, where containers must be available later without a live lookupStorage, retention and access controls to set up; confirm archive tooling for your release lineThe archive must keep signed files unchanged; restrict write access and log every transfer
Export on demandOccasional requests, where storing every container adds cost without regular useEach request needs a fresh export from the Security Server and a person to run itA longer path from request to evidence, and each export becomes a custody event to record
Team's own staff verifyRoutine cases where staff know the platform and the outcome is not expected to be contestedStaff time and training on the verifier for the release line in useStaff with a stake in the outcome may face challenge; document the procedure and separation of duties
Outside party verifiesContested cases, regulator review, or where independence matters to the outcomeEngagement scope, access to the copy and fees, all set out in the written scopeAdds a party to the chain of custody; agree handover, hashing and return of evidence in writing

How a query ID becomes a verified evidence file

The diagram starts with the dispute or audit requester giving a query ID to the asic service, which runs on the Security Server inside the trust boundary, alongside its admin roles. The service finds the matching entries in the message log and exports a request container and a response container as files. Those files are copied, and asicverifier checks the copy so the exported originals stay untouched. The verification result and the copies go to the evidence store, where the chain-of-custody record is kept and access control must be set before anyone outside the operating team can read the file. At each hand-off, confirm that the copy matches the export and that the result is logged.

The path from query ID to a verified, logged evidence file.

Retrieving signed documents by query ID and verifying them, step by step

Eight steps take one exchange from its query ID to a verified, stored set of signed containers, with a check at each stage. Each step records what it produced so a reviewer can rebuild the evidence chain. The sequence assumes the message log and the asic service were configured to cover the exchange in question.

  1. Confirm the release line and tools

    The Security Server operator on each side confirms which X-Road release line is installed, using the current release 7.8.3 and the supported lines 7.7.4 and 7.6.5 as reference points. Then confirm in the release notes and the Security Server user guide that the asic service and asicverifier are available for that line. Done when the version recorded for each server matches its installed packages and both tools are listed for it. If a server runs a line without the asic service or verifier, stop and plan an upgrade or a supported line before going further.

  2. Confirm the message log holds the exchange

    The operator checks the message log on each Security Server that handled the exchange, starting with the logging mode configured for the relevant client and service subsystems. Confirm in the user guide which artifacts that mode keeps, because a metadata-focused mode may not hold the signed containers this sequence depends on. Check that the exchange appears for the expected date window with both subsystem identifiers. If no entry exists, the exchange cannot be shown from that server, so note the gap, check the counterparty's server and escalate before continuing.

  3. Find the query ID for the exchange

    Find the query ID in the message log view of the Security Server admin UI, filtering by the date window and subsystem identifiers from the previous step. Record the query ID with the consumer, provider, service and timestamp it belongs to. The exact search steps are in the Security Server user guide. Check that exactly one entry matches the reference in your dispute or audit request and both parties. If several entries match or the parties differ, retrieve nothing yet and narrow the filter until the match is unique.

  4. Retrieve the request and response containers

    Use the asic service with the query ID to download the request container and the response container for that exchange, keeping each file under its original name. Confirm the call syntax in the user guide before running anything. Do not edit, re-save or unzip either file. Check that both containers are present and that the query ID used for each download matches the one recorded in the previous step. A missing response usually means the exchange did not complete or was not captured, so record that outcome and stop.

  5. Record file hashes and retrieval time

    Record the SHA-256 hash of each container on the workstation that downloaded it, along with the retrieval time in UTC, the operator's name and the source Security Server. Keep the hash list in a file separate from the containers. Check by recomputing each hash from a second read of the file, where both values must match the recorded ones. A mismatch means the file changed between download and recording, so set that copy aside, retrieve it again and document both attempts.

  6. Verify a copy with asicverifier

    Run asicverifier on a copy of each container, never on the stored original, and save the full output to a file. Record the tool version next to the output, along with the command used, copied from the user guide. Check that the output reports a completed verification for both containers and that the tool version appears in the results file. A verification error or a failed signature means the container cannot yet be treated as valid evidence, so record the message, re-check the hash and tool version, and escalate.

  7. Check parties and services against expectations

    Compare the verification output with the expected parties, services and time window taken from the agreed exchange record. Check each member identifier, the service name and the timestamps in both containers against that record, and note any difference. Every value should match. A mismatch in either party or in the service means the container may belong to a different exchange, so mark the result as not matching and escalate before anyone relies on it.

  8. Store containers with a chain-of-custody record

    Store the original containers read-only, together with the hash list, the verifier output and the tool version, in one evidence folder. Keep a chain-of-custody record listing each person who handled the files, the time, the location and every transfer. Check by restoring one container from storage, recomputing its hash and confirming it matches the recorded value. A missing custody entry or a hash mismatch weakens the evidence, so document the gap and ask counsel or your compliance lead how to proceed.

What asicverifier confirms about a signed document, and what it does not

Verification answers one narrow question: do the signatures in the container still match its content, and do the signing certificates validate against the trust material the verifier holds when it runs? A passing run shows that the container has not been altered since signing and that its signatures trace to certificates the verifier accepts. It does not, on its own, show who sent a request, that the underlying business transaction took place, or that the content is correct. Treat the result as one input to a dispute, to be read alongside the message log, the Security Server configuration and each party's own records. The weight of a case comes from how those pieces fit together, and the verifier only covers one of them.

The outcome depends on the trust services in place when the exchange happened. Signing certificates must chain to a certification authority that was approved at that time, and timestamps must come from a timestamping authority the verifier can validate. If a certificate has since expired, been revoked or been replaced, a check run today may report a different result from the one that applied at the time of exchange. Ask the operator to keep the global configuration, the trust anchors and the timestamping service details for each period in which containers were produced, so verification can be repeated against the material that applied then. Also confirm how the tool handles a certificate that was valid at signing but has since expired.

The verifier output must be stored with the container. Keep the report with the date and time of the run, the asicverifier version, the container file name and its checksum. A bare pass or fail from a retrieval last year is weak evidence if the environment has changed since. Before you rely on the tool in a dispute, confirm two things in the vendor documentation: which trust material asicverifier uses (for example, whether it reads a bundled list, the global configuration or a directory you supply), and how it reports a failed check, including the exit code, the message written to standard error and any field in its output. Then test the workflow with a deliberately altered container to confirm that the failure is reported in the form your evidence process expects.

Protecting signed documents and the keys behind them

Signed containers only work as evidence if the people who fetch them, the keys that sign them and the copies kept afterward can all be accounted for. The six cards below cover access, key protection, host hardening, custody, personal data and retrieval records. Each card names the risk, the control and the check to run before you rely on the evidence.

Who may retrieve containers

Retrieval should be limited to named roles. Security Server admin users authenticate through PAM, and with SSSD the LDAP groups you already manage can be mapped to X-Road roles, so access follows your directory. Confirm which of the five roles covers ASiC container retrieval in your version, since it may not be the role your team assumes. Check the mapping by signing in as a user outside the permitted group and confirming that the retrieval is refused.

User guide

Signing keys in hardware modules

A software signing key stored on disk can be copied, and a copied key lets someone produce containers that appear authentic. X-Road can hold signing keys in a hardware security module through PKCS#11 drivers, using the xroad-addon-hwtokens package, for both RSA and EC keys. Before go-live, confirm that your module vendor's driver supports the key type you chose, and that the signing key is generated on the token and never exported from it. Then run a signed export to confirm the module is in use.

Installation guide

Host hardening baseline

The hardening guide sets the baseline for Security Servers: account lockout after repeated failed logins, long passwords, key-only SSH, and the allowed-hostnames setting, which guards against host header injection. These controls protect the admin interface that issues retrieval requests and the host that holds your keys. Check each control on every Security Server, including standby nodes, by attempting a password login over SSH, a short run of failed logins and a request with an unlisted host header. Record the results with the change ticket.

Hardening guide

Chain of custody for exports

An exported container is only as strong as its handover record. The file leaves the Security Server at export, so the record of who handled it afterward is yours to keep. Compute a checksum at export, store the file in access-controlled evidence storage, and log each transfer with the person, the time and the purpose. Before a dispute or audit, recompute the checksum and compare it with the recorded value. Confirm with your legal team how long the evidence must be kept and who may open it.

Personal data in exported bodies

Message bodies can contain personal data, and a container exported for an audit carries that content to whichever team receives it. Whether body content is stored at all depends on the message log mode and on whether body encryption is enabled, so those choices come first. Before exporting, sample a container from each service and list the personal data fields that appear. Limit export rights to people who need the content, and confirm the handling rules with your data protection officer.

Admin record of retrievals

Without a record, nobody can later show who pulled a container, which query ID it came from, or when. Keep an entry for each retrieval that names the requester, the query ID, the time and the reason. The X-Road audit log records administrative actions on Security Servers, so confirm whether it captures ASiC downloads in your version and fill any gap with your own log. Reconcile who retrieved which container and when against the audit log on a regular schedule, and keep both under access control.

Using signed documents as evidence in a dispute versus an audit

A counterparty dispute usually starts with a claim that a request was never sent, that a response was changed, or that a service returned data different from what was agreed. The requester, often the counterparty's counsel or claims team, asks for the signed request and response containers for named query IDs and for proof that those containers were checked. Your team controls the retrieval and the chain of custody. Counsel decides what the evidence means, and legal weight depends on jurisdiction and counsel.

  • What is requested: signed request and response containers for specific query IDs, usually with a time window and the subsystem identifiers of both parties.
  • What you hand over: the original ASiC containers, asicverifier output for each file, a custody record showing who extracted them and when, and a short written description of the retrieval process.
  • Urgency: high. Treat the retention setting on the Security Server as the deadline, export the containers before any cleanup or archive job can remove them, and record the retention settings in force at the time.
  • Interpretation: counsel reads the result and decides how it is presented. Your engineers describe the steps and the tool output, and leave the legal conclusion to counsel.

Before sending anything, confirm that the query IDs match the disputed exchanges and that the custody record is complete.

Limits to confirm before relying on signed documents as evidence

The items below are checks to run in your own environment before a signed container is used in a dispute or audit. Most depend on the release line you run, the logging and timestamping choices on each Security Server, and where copies are kept after cleanup.

Release line carrying the tools

Confirm which release line carries the asic service and asicverifier before you write a procedure around them. The supported lines are 7.8.3, 7.7.4 and 7.6.5, and 7.8.3 is the current release. Check that both components are present on every Security Server holding messages you may need to produce, not only on the server you administer day to day. Record the component versions in your evidence procedure so a later reviewer knows exactly what produced each verification result.

X-Road releases

Coverage across logging and timestamping

Confirm that containers can be produced for every combination of message log mode and timestamping setup in use. Each Security Server or subsystem may run a different message log mode, and some services may use synchronous timestamps while others use batch timestamping. Do not assume a container exists just because the exchange succeeded. Test retrieval for one message from each combination, including a subsystem with metadata-only logging, and keep the results with your procedure.

Security Server and archive retention

Retention on a Security Server and retention in archive storage are separate settings. Confirm the retention configuration on each Security Server, then confirm the policy of the store that holds archived files. For a message of a given age, establish which copy you can still reach through the retrieval and verification steps. Also confirm that an archived file can be brought back into verification with its signatures intact. Set retention so the copy you rely on outlasts the dispute window your counsel identifies.

Behavior in X-Road 8

X-Road 8 Spaceship is in beta, so do not assume 7.x behavior carries over. It is available for testing as 8.0.0 Beta 2, with its production release scheduled for December 2026, and it is positioned as a data space solution. Container format, the retrieval interface, verifier behavior and log handling may differ between the two major versions. If a migration is planned, run your retrieval and verification tests against the beta and compare the results with your 7.x containers before relying on either path.

X-Road GitHub repository

Verifier results over long retention

A verifier result is only as durable as the material used to check it. Certificates, OCSP responses and timestamp authority certificates change or expire over a long retention period, so a check that passes today may need to be repeated against the trust material valid at signing time. Confirm which trust material the verifier uses, whether it can run against historical data, and what it reports when a certificate has since expired or been revoked. Store the verifier version with each result, together with the container and the trust configuration, so a later reviewer can repeat the check.

Legal standing of containers

The verifier shows whether a container is intact and correctly signed. Whether that carries weight as evidence depends on your jurisdiction, your sector rules and the authority that oversees your organization. Counsel and the relevant authority decide that question, not the verification step. Ask counsel to confirm the evidential standing of the containers for your use, and ask the authority whether it accepts verified containers or requires supporting records. DeployOpen does not issue audit reports or certifications, so treat this as a question for counsel and the authority.

How much effort and cost does signed document verification take?

What drives the effort for a team that already runs a Security Server?

Effort rises with four things: the number of subsystems the Security Server serves, the number of disputed exchanges you expect to resolve, the message log mode each subsystem uses, and how formal your evidence process is. Each subsystem adds lookup and naming work, and disputed volume decides whether retrieval is a routine task or an exceptional one. Logging mode shapes what evidence exists at all, so confirm it per subsystem before scoping. The evidence process covers who may request a container, how files are hashed and stored, and how custody is recorded for counsel or an auditor. A team with a written procedure and named owners spends far less effort per case than one writing that procedure during a dispute.

How long does the first signed document workflow take to set up?

The duration depends on the written scope, so this page gives no figure. Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for a quote that names the subsystems in play, the Security Server environment, the retrieval and verification steps, the evidence handover format and the runbook you will receive. Each item changes the schedule. A quote that leaves any of them out cannot give you a reliable timeline, so ask for the assumptions behind the estimate in writing.

Can our own team verify X-Road signed documents without a partner?

Yes, a team that already runs a Security Server can do this without a partner if the roles, access and a runbook are in place. The work is mostly disciplined routine: identify the query ID for each exchange, retrieve the signed request and response containers from the asic service, verify them with asicverifier and store the results with a record of who ran each step. Roles should separate the people who may request evidence from those who approve its release. Access should allow retrieval without broad administrative rights on the server. The runbook should cover failure cases, such as a missing container or a failed verification, and name who decides the next step. Teams that lack these pieces may find outside help useful for building them first.

What does DeployOpen need from our team to start?

DeployOpen needs a few things from your side before work starts. Admin access to the Security Server, scoped to the task, lets the team confirm configuration and run retrieval. You provide the query IDs for the exchanges in question, along with the time window and subsystem each one belongs to. A named legal contact decides what counts as a dispute, what may be released and how evidence is handled. You also provide storage for the retrieved containers and verification outputs, with access controls and retention set by your policy. Confirm which environments will hold copies of the evidence, since those copies carry the same sensitivity as the originals.

Does DeployOpen issue audit reports or attestations for signed evidence?

No. DeployOpen does not issue audit reports, attestations or certifications. It can prepare systems, controls and evidence for a compliance assessment, such as the retrieval procedure, verification records and access settings an auditor will want to see. Independent auditors and certification bodies perform the assessment and issue any report. An auditor usually needs the procedure, the people and the records together, so plan to show all three. Ask your auditor early which evidence formats and retention periods they accept, and confirm that with them before building the process.

Does signed document verification work on X-Road 8 today?

Only in testing. X-Road 8 Spaceship is available as 8.0.0 Beta 2, and its production release is scheduled for December 2026. Do not rely on the signed document workflow in production until you have checked, against the release notes for the version you test, that the asic service and asicverifier behave as described here for X-Road 7. Test retrieval and verification of containers from your own exchanges in a non-production environment, and record any differences. Confirm the current status on the X-Road releases page before you commit a date to a dispute process.

Which checks should a team run before trusting an asicverifier result?

Run the verifier on a copy, never on the only copy, and check three things before relying on the result. First, confirm that the verifier version and the trust configuration it uses match your environment, since a mismatch can change the outcome. Second, record a hash of the original container when you retrieve it, so you can later show the file was not altered. Third, keep the verifier output with the container and its query ID, so a reviewer can repeat the check. Confirm the options and output fields in the documentation for the version you run, because this page does not list them.

What recurring work follows after the first workflow goes live?

Expect recurring work after go-live, not only the first build. Each dispute needs retrieval and verification, and the effort depends on volume and on how quickly your team can find the right query ID. Archived containers need storage capacity, backup and retention that follows your records policy. Security Server upgrades, certificate renewals and changes to subsystems can affect retrieval, so each change should trigger a check of the workflow. Ongoing support, upgrades and continuous testing are available as retainers, and their scope is set in writing.

How DeployOpen scopes and delivers signed document verification

DeployOpen plans signed document verification as part of the evidence chain around your X-Road deployment. We define which Security Servers and message logs the work depends on, how your team retrieves signed request and response containers by query ID, and how asicverifier checks them before they enter a dispute or audit file. Engagements are fixed-scope, and scope, deliverables and timelines are agreed in writing before work starts.

How we scope

  • The written scope lists which Security Servers, subsystems and query ID ranges the verification work covers.
  • We confirm which message log mode is in use, since full and metadata logging keep different evidence.
  • We list the verifier, OS and database versions needed, and you confirm each before work starts.

How we build

  • We confirm asic service access and test query ID retrieval in your environment before any evidence is pulled.
  • We script a repeatable retrieval step that saves each container under its query ID.
  • We set up asicverifier runs that log each result, including every failed check and its reason.

How we hand over

  • You receive the retrieval script, verifier configuration and a runbook with the steps for a dispute request.
  • The handover documents which X-Road version, Security Server settings and logging mode the evidence came from.
  • Your team runs a test retrieval with us, and we record the results in the agreed documentation.

How we support

  • Ongoing support is available as a retainer for archive, verifier and configuration checks.
  • Retainers can cover re-running verification after upgrades to the Security Server or the X-Road release in use.
  • Independent auditors issue any opinion or attestation; DeployOpen prepares the evidence they review.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.