A did:web identifier such as did:web:example.org resolves to https://example.org/.well-known/did.json. When TrustDID manages your DID the document lives in your TrustDID organisation, and this plugin publishes it on your WordPress site and keeps it there in step.
Before you start
- An identity on your own domain. A TrustDID-hosted identity already resolves at our domain, so there is nothing to mirror.
- Your Customer ID, from the TrustDID dashboard. The plugin calls it the organisation ID.
- WordPress 5.8 or newer, PHP 7.4 or newer.
- WordPress answering at the domain root. A site installed in a subdirectory (
example.org/blog) cannot publishdid:web:example.org. - No physical
/.well-known/did.jsonfile on the server. The web server serves a real file before WordPress ever runs, so an old one left in place wins silently.
Step 1: Install the plugin
Download the plugin from the downloads page, then in WordPress go to Plugins › Add New › Upload Plugin, choose the zip, install it and activate.
Step 2: Point it at your organisation
Go to Settings › TrustDID DID and enter your Customer ID, or the full https://trustdid.ca/org/<id> URL. Save: the first sync runs immediately.
Step 3: Check it
Open https://your-site/.well-known/did.json. You should see your organisation's document. Its signature is published beside it, so the browser extension will show Authentic on that page, and from a terminal:
curl -O https://your-site/.well-known/did.json
curl -O https://your-site/.well-known/did.json.vrfy
trustdid-verify did.json
Step 4: Instant updates (optional)
By default the plugin checks hourly. To have changes arrive within a minute, open Website sync in the TrustDID dashboard and add the webhook URL and token shown on the plugin's settings page. The webhook only triggers a sync: it carries no content, and the files are always fetched from TrustDID and checked against their hashes.
What it publishes
- Your organisation's document at
/.well-known/did.json, with its.vrfysignature and.vrfy.logkey history, byte for byte. - Every member and shared profile at
/public/{name}/did.json, found from the TrustDID manifest: add or remove one in the dashboard and the site follows. - Nothing else. Only a document whose
idmatches this site's domain and whose hash matches the manifest is written.
If something looks wrong
- 404 on the document. WordPress is not at the domain root, a real file is shadowing the route, or permalinks need flushing — open Settings › Permalinks and save.
- The document is out of date. The check is hourly; set up the webhook above, or run
wp trustdid sync. - TrustDID was unreachable. The site keeps serving the last good copy, and the settings page shows the failed attempt. The DID keeps resolving.
From the command line
The plugin registers WP-CLI commands:
wp trustdid source <org-id> # point the site at an organisation
wp trustdid sync # fetch now
wp trustdid status # last sync, last error, files published
Why not just redirect to trustdid.ca?
Because did:web trust comes from your domain. Verifiers, TrustDID's included, do not follow redirects when they resolve a DID — the document has to be served by the domain the identifier names.