Enable gs1-product.perdl.com as an issuer¶
The issuer DID is did:web:gs1-product.perdl.com. Its verification document
is published at https://gs1-product.perdl.com/.well-known/did.json.
holon-vc signs on your private machine; Zensical publishes only public files.
The website does not need the signing key or an issuance server.
New issuer metadata, domain-linkage credentials and signed status lists are valid
for 365 days. Local resource pins and status cache freshness remain five
minutes. This is a fixed 365-day period, not a calendar-year calculation. Existing
artifacts are not extended automatically: regenerate and redeploy them.
Individual product credentials have their own expiry; pass --expires deliberately.
1. Build and create persistent private storage¶
Use Linux, Bash, Rust/Cargo and Python 3.11 or later. Run from the holon-vc
repository root and keep the same shell session throughout. The target site's
Zensical environment must already be installed. Initial dependency downloads need
network access. Replace the website checkout path below with its actual location.
set -euo pipefail
umask 077
cargo build --locked --release
HOLON_REPO="$PWD"
HOLON_BIN="$HOLON_REPO/target/release/holon-vc"
ISSUER_DATA="$HOME/.local/share/holon-vc/gs1-product"
ISSUER_DID='did:web:gs1-product.perdl.com'
ISSUER_ORIGIN='https://gs1-product.perdl.com'
ISSUER_SITE_REPO='/absolute/path/to/gs1-product-site'
mkdir -p "$ISSUER_DATA"
vc() {
"$HOLON_BIN" --data-dir "$ISSUER_DATA" --offline --output-format json "$@"
}
Keep this private directory outside the website checkout and back it up securely. Commands that sign or create keys prompt for a password. Retain the password for later issuance, renewal and status changes. Do not use the ephemeral automated example's keys for this persistent issuer.
2. Generate keys and bind suites¶
Run key setup once. Reuse these keys for refresh; do not overwrite them each time.
vc key setup --id issuer --controller "$ISSUER_DID" --algorithm ed25519
vc suite setup --name issuer \
--key "$ISSUER_DATA/keys/private/issuer.json" \
--verification-method "$ISSUER_DID#issuer" --cryptosuite eddsa-rdfc-2022
For selective disclosure, also generate a P-256 key before publishing the DID:
vc key setup --id selective --controller "$ISSUER_DID" --algorithm p256
vc suite setup --name selective \
--key "$ISSUER_DATA/keys/private/selective.json" \
--verification-method "$ISSUER_DID#selective" --cryptosuite ecdsa-sd-2023
3. Generate and validate public identity and status files¶
vc well-known generate \
--origin "$ISSUER_ORIGIN" --issuer-did "$ISSUER_DID" \
--suite issuer --display-name 'GS1 Product — PERDL' --jwks
vc status create --id products \
--url "$ISSUER_ORIGIN/status/products" --suite issuer
ISSUER_FINGERPRINT="$(python3 -c \
'import json,sys; print(json.load(open(sys.argv[1]))["fingerprint"])' \
"$ISSUER_DATA/keys/public/issuer.json")"
printf 'Issuer fingerprint: %s\n' "$ISSUER_FINGERPRINT"
vc well-known validate \
--origin "$ISSUER_ORIGIN" --issuer-did "$ISSUER_DID" \
--expected-fingerprint "$ISSUER_FINGERPRINT" \
--output-dir "$ISSUER_DATA/site/.well-known"
Validation must exit 0. Retain the fingerprint through an independently trusted
channel. The display name can be changed to your publisher's name; it conveys no
GS1 endorsement. Do not enable --openid without separately operated issuance
services. Domain linkage here uses the Holon VC2 application profile, not DIF VC1.
The public subtree is:
site/
.well-known/
did.json
did-configuration.json
holon-issuer.json
jwks.json
manifest.json
status/products/
revocation.json
suspension.json
4. Integrate with the target Zensical site¶
For GitHub Actions deployment, do not commit the generated Zensical site/
directory. Commit the public issuer source files in issuer-public/; the
workflow builds the website, copies those files into site/, and uploads that
build output directly to GitHub Pages.
There are three different directories involved:
| Directory | Purpose | Commit to the target website repository? |
|---|---|---|
$ISSUER_DATA/site/ |
Public files generated by holon-vc on the signing machine |
Copy its contents into issuer-public/; do not commit the private issuer workspace. |
$ISSUER_SITE_REPO/issuer-public/ |
Signed public files used as website build inputs | Yes, including .well-known/ and status/. |
$ISSUER_SITE_REPO/site/ |
Generated Zensical output (or your configured site_dir) |
No. GitHub Actions creates and deploys it. |
Keep /site/ in the target repository's .gitignore (use the actual output
directory if different). Do not ignore issuer-public/. This process does not
require a local Zensical build or checking generated website files into Git.
Copy only the public issuer tree into the site's source checkout:
mkdir -p "$ISSUER_SITE_REPO/issuer-public"
cp -R "$ISSUER_DATA/site/." "$ISSUER_SITE_REPO/issuer-public/"
find "$ISSUER_SITE_REPO/issuer-public" -type d -exec chmod 755 {} +
find "$ISSUER_SITE_REPO/issuer-public" -type f -exec chmod 644 {} +
Set the following value inside the target site's existing [project] section;
do not replace its other settings:
site_url = "https://gs1-product.perdl.com/"
The workflow below performs the build and post-build copy on the GitHub runner.
No local site/ directory is required. Never copy private keys, the private
status registry, configuration, trust policies or the whole issuer data directory.
Preserve public JSON bytes so manifest digests still match.
GitHub Pages: update the existing docs.yml¶
In the target website repository, update .github/workflows/docs.yml rather
than creating a second Pages deployment workflow. This is the standard Zensical
workflow with a public-artifact copy step after the build and hidden-file upload
enabled so .well-known is preserved.
In the target repository's Settings → Pages, select GitHub Actions as the
source, configure gs1-product.perdl.com as the custom domain, and enable HTTPS
when available. Retain working DNS settings if the domain is already configured.
No signing keys or additional deployment secrets are required by this workflow.
Replace the target site's docs.yml with:
name: Documentation
on:
push:
branches:
- master
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/configure-pages@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Zensical
run: pip install zensical
- name: Build documentation
run: zensical build --clean --strict
- name: Include public issuer files
shell: bash
run: |
set -euo pipefail
for resource in \
.well-known/did.json \
.well-known/did-configuration.json \
.well-known/holon-issuer.json \
.well-known/jwks.json \
.well-known/manifest.json \
status/products/revocation.json \
status/products/suspension.json
do
test -s "issuer-public/$resource"
done
cp -R issuer-public/. site/
test -s site/.well-known/did.json
test -s site/status/products/revocation.json
test -s site/status/products/suspension.json
- uses: actions/upload-pages-artifact@v5
with:
path: site
include-hidden-files: true
- uses: actions/deploy-pages@v5
id: deployment
This assumes the target site's site_dir is site. If it differs, update the
copy destination, post-copy checks and artifact path together. The required
jwks.json is generated by the guide's --jwks option. Missing public files or
strict build failures stop deployment. File-presence checks do not replace the
cryptographic validation in steps 3 and 5.
The copy must follow zensical build --clean: files copied before the clean
build could be removed. The trailing /. copies .well-known as well as normal
directories; include-hidden-files: true ensures the artifact upload includes it.
The uploaded artifact contains only the generated site/ directory.
This retains the standard workflow's pip install zensical. If the target site
already maintains pinned dependencies, replace that command with
pip install -r requirements-docs.txt for reproducible builds.
Commit and trigger deployment¶
After generating and locally validating the issuer files in step 3, copy the public tree using the commands at the start of step 4. Then run:
cd "$ISSUER_SITE_REPO"
git add .github/workflows/docs.yml issuer-public/ zensical.toml
# Also stage .gitignore if you updated its generated-output exclusion.
git commit -m "Publish issuer verification and status files"
git push
The staged files are source inputs and workflow configuration. Do not add site/
or use it as a source branch for Pages; the workflow uploads it as a build artifact.
Run this on the site's configured publishing branch (main or master). If
branch protection requires a pull request, merge the update into that branch.
Every push to either branch automatically builds and deploys; you can also use
Actions → Documentation → Run workflow on the publishing branch. Wait for the
workflow to succeed, then perform the remote checks in step 5. The workflow does
not automatically run those remote cryptographic checks.
For subsequent renewals, revocations or suspensions, regenerate the affected
public artifacts on the issuer machine, validate them, copy the public tree again,
and commit/push the updated issuer-public/. The workflow publishes the updated
files without further YAML changes. A Pages rebuild alone does not renew a
signature or extend its validity: signing and annual renewal remain on the
issuer machine with the persistent keys and status registry.
See Zensical configuration and the Pages artifact action. This guide does not configure DNS, TLS or the hosting provider automatically.
5. Validate the deployed site over HTTPS¶
The following URLs must return HTTP 200 and JSON, with an accepted JSON content type. They must not redirect, return an HTML fallback, or apply HTTP content compression. Configure the host/CDN for these paths; the current resolver rejects redirects and compressed HTTP responses. See deployment requirements.
for resource in \
.well-known/did.json \
.well-known/did-configuration.json \
.well-known/holon-issuer.json \
.well-known/jwks.json \
.well-known/manifest.json \
status/products/revocation.json \
status/products/suspension.json
do
curl --fail --silent --show-error \
--header 'Accept-Encoding: identity' \
--dump-header - --output /dev/null "$ISSUER_ORIGIN/$resource"
done
REMOTE_CHECK="$(mktemp -d /tmp/gs1-product-check.XXXXXX)"
"$HOLON_BIN" --data-dir "$REMOTE_CHECK" --output-format json \
well-known validate \
--origin "$ISSUER_ORIGIN" --issuer-did "$ISSUER_DID" \
--expected-fingerprint "$ISSUER_FINGERPRINT"
There is intentionally no --offline or local resource configuration in this
last command. A fresh directory prevents local pins from masking deployment
failures. Expected result: exit 0. This checks identity artifacts; the credential
verification below additionally checks the signed status lists.
Read a successful publication report¶
The following is a successful well-known validate result, not a partially
failed validation:
{
"checks": [
{"code": "OK", "outcome": "passed", "stage": "publication"}
],
"confidence": 0.5,
"cryptographicallyValid": true,
"decision": "authentic-assertion",
"errors": [],
"evidenceVerified": false,
"freshnessValid": true,
"holderAuthenticated": false,
"issuerAuthenticated": true,
"issuerTrustedForClaimType": false,
"policy": {
"confidenceModel": "ordinal-policy-score-not-probability",
"id": "holon-default",
"version": "1.0"
},
"reportVersion": "1.0",
"schemaValid": true,
"status": "unavailable",
"warnings": [
"Holon VC 2.0 domain linkage is an application profile, not the DIF VC 1.x linkage profile; it does not establish claim truth."
]
}
| Result | Meaning for this command |
|---|---|
Publication passed, errors: [], exit 0 |
The publication validation succeeded. |
cryptographicallyValid: true |
The domain-linkage signature verifies; the publication's digest and consistency checks pass. |
issuerAuthenticated: true |
The issuer's authorized linkage signer matches the independently supplied expected fingerprint. |
freshnessValid: true |
The checked metadata and linkage credential pass validity checks. This does not prove the CDN holds the latest version or assess a product's status. |
schemaValid: true |
Published identity artifacts satisfy the supported schemas. |
decision: authentic-assertion |
The identity publication is authenticated; this is not a claim that product information is true. |
issuerTrustedForClaimType: false |
This command does not establish a verifier's trust policy for particular product claims. |
evidenceVerified: false |
Supporting product evidence is not assessed by this command. |
holderAuthenticated: false |
No holder presentation is being authenticated. |
status: unavailable |
Product credential revocation/suspension status is not evaluated here; this does not mean the deployed status URLs failed. |
confidence: 0.5 |
An ordinal policy score for this outcome, not a 50% probability of correctness. |
The report uses a shared format across verification commands. Fields outside the scope of publication validation can remain false or unavailable even when this command succeeds. The domain-linkage warning describes the Holon VC2 application profile and its interoperability limits; it is not a validation failure.
Once publication passes, continue to step 6 to issue and verify a credential.
Remote credential verify additionally checks its signed status lists. A
trusted-assertion outcome requires a matching verifier trust policy; it should
not be inferred from successful publication validation alone.
GitHub Pages media types and cache headers¶
GitHub Pages can serve did.json as application/json; charset=utf-8.
That is compatible with did:web. The manifest still describes the document as
application/did+ld+json; publication validation accepts the generic JSON
transport type specifically for the issuer's resolved DID document and still
checks its exact manifest digest, structure, authorization and signatures.
See the did:web document handling rules.
If all seven HTTP requests return 200 but well-known validate reports
MEDIA_TYPE, an older binary may still require the DID-specific HTTP type.
Rebuild the updated checkout and retry with a fresh verifier directory:
cd "$HOLON_REPO"
cargo build --locked --release
REMOTE_CHECK="$(mktemp -d /tmp/gs1-product-check.XXXXXX)"
"$HOLON_BIN" --data-dir "$REMOTE_CHECK" --output-format json \
well-known validate \
--origin "$ISSUER_ORIGIN" --issuer-did "$ISSUER_DID" \
--expected-fingerprint "$ISSUER_FINGERPRINT"
Do not edit the manifest's mediaType or signed files to bypass this error.
This compatibility fix only requires an updated verifier binary; it does not
require regenerating issuer artifacts or redeploying otherwise valid files.
charset=utf-8 is already handled by the HTTP parser. Vary: Accept-Encoding
alone does not mean the response is compressed; Content-Encoding indicates
that. HTTP 200 establishes reachability, not cryptographic validity.
A response with Cache-Control: max-age=600 advertises ten-minute caching,
longer than this project's recommended 300 seconds. This is separate from the
media-type error: fresh local pins do not guarantee fresh CDN content. Account
for that propagation delay when publishing revocations; do not claim five-minute
end-to-end freshness on a host serving ten-minute cached responses.
6. Issue a one-year smoke-test credential¶
Return to the Rust repository. If more than five minutes have elapsed since step 3, run the refresh commands in step 7 first to renew local pins.
cd "$HOLON_REPO"
CREDENTIAL_EXPIRES="$(python3 -c \
'from datetime import datetime,timedelta,timezone; print((datetime.now(timezone.utc)+timedelta(days=365)).isoformat())')"
vc credential issue --holon "$HOLON_REPO/examples/holon.json" \
--suite issuer --status-list "$ISSUER_DATA/status/products.json" \
--expires "$CREDENTIAL_EXPIRES" --output "$ISSUER_DATA/example.vc.json"
vc credential verify --credential "$ISSUER_DATA/example.vc.json"
"$HOLON_BIN" --data-dir "$REMOTE_CHECK" --output-format json \
credential verify --credential "$ISSUER_DATA/example.vc.json"
The smoke test uses the bundled Holon profile to isolate issuer setup from product
schema configuration. Verification should report an authentic assertion with
active status. Trust is a separate verifier decision; domain control alone does
not create a trusted-assertion policy.
For the four Schema.org sidecars under the target site’s docs/products, first
use the shared product profile helper. Their shape
differs from the earlier single-product fixture.
For GS1 Risotto Rice, retain the product context and paired
schemas from the guide, but use this persistent data directory, these suites,
did:web:gs1-product.perdl.com as the source, and this products status registry.
Pass the generated product config.toml using --config and
--schema-id urn:example:product-holon:1.0 when issuing. Use --suite selective
for actual disclosure. The product's GS1 Digital Link ID remains unchanged.
The product demo deliberately retains its one-day credential/context expiry;
for a persistent product profile, choose its context-pin expiry and credential
--expires explicitly. Verifiers must receive matching context/schema pins and
establish trust independently.
7. Refresh and publish changes¶
Use the same persistent data directory and original key password:
vc well-known generate \
--origin "$ISSUER_ORIGIN" --issuer-did "$ISSUER_DID" \
--suite issuer --display-name 'GS1 Product — PERDL' --jwks --force
vc status create --id products \
--url "$ISSUER_ORIGIN/status/products" --suite issuer --force
Repeat steps 4 and 5 to deploy and verify. Refreshing creates newly signed 365-day artifacts; it does not change an already issued product credential's expiry. Status refresh preserves allocations, suspensions and revocations. Refresh before annual expiration and publish status changes promptly. Maintain short HTTP cache lifetimes, typically 300 seconds, regardless of signature lifetime. Local generated pins still expire after five minutes and need refresh before later offline operations. A 365-day signature lifetime is not permission to trust an old cached status list for a year.
Back up private keys and the status registry. Use explicit key rotation rather than rerunning setup over an existing key. Publication should switch a complete public snapshot to avoid mismatched manifests during deployment.
Issue the website product credentials¶
Once issuer setup and remote validation pass, follow Issue and publish the four product credentials. It uses the shared profile helper output, prepares unsigned Holons and pinned configuration, issues credentials, and integrates downloads into the product HTML templates.