Verify gateway device information
Reproduce a published MANAGEMENT example offline and check the evidence for an independent gateway trial.
Check the published example
From the workspace root, download the WAN OpenAPI document once and build the verifier. The commands below keep the public fixture and receipt in target/.
mkdir -p target/device-info
curl --fail --silent --show-error https://wan-api.smgw.biz/openapi.json \
-o target/device-info/openapi.json
cargo build --locked -p xtask
target/debug/xtask device-info offline target/device-info/openapi.json \
> target/device-info/receipt.json
cat target/device-info/receipt.json
The verifier runs offline. It checks the document and example digests, selects the device-information GET, and validates the logical device, object, class and XML namespace. Expect origin published-example, manufacturer MFC and firmware 1.2.3-56252. A source update requires a fresh review of the pins. WAN API · BSI Webservice APIs, Annex 2
Review a receipt
Record the SHA-256 of the approved receipt in your review log. Use that independently retained digest when checking a copy. The same verifier binary, case and input must reproduce the receipt. The output includes the verifier binary’s digest so a rebuilt binary can require a new review.
openssl dgst -sha256 target/device-info/receipt.json
target/debug/xtask device-info review target/device-info/openapi.json \
target/device-info/receipt.json "$REVIEWED_SHA256"
Prepare an independent trial
Run target/debug/xtask device-info lab to see the first missing prerequisite. For a private case, pass a version 1 JSON manifest. Start with {"version":1}. For each available entry below, add an object with a file name and the reviewed file’s lowercase sha256. Place regular files beside the manifest. Keep the manifest within 16 KiB, the inventory and protected response within 1 MiB each, and each supporting document within 16 MiB.
| Entry | Reviewed material |
|---|---|
peer_inventory | Authorized independent peer, firmware and private expected device identity |
ics | Peer’s implementation conformance statement and selected algorithms |
object_schema | Applicable schema for device information and active firmware |
pki_policy | Test trust and permitted TLS, signing and encryption roles |
revocation_data | Revocation material for the selected policy |
protected_vector | Independently produced protected response for this profile |
target/debug/xtask device-info lab /private/lab/case.json
Exit codes are 0 for a passed check, 1 for a failed check and 2 for blocked prerequisites. Preflight checks local file integrity. With every file present, live qualification remains blocked on provider verification and two witnessed gateway associations. Keep private case files in the lab. The preflight emits only public reason codes.