Request-signing tester
Sign and verify an HTTP request with an agent passport key (RFC 9421), in your browser.
Agents prove who they are to sellers by signing each HTTP request with their passport key, using RFC 9421 HTTP Message Signatures. This tester signs a request with a throwaway key and verifies it the way a seller's Verify middleware does, check by check. It runs on WebCrypto in your browser: keys and requests never leave the page.
How signing works#
- The agent hashes the body into a
Content-Digestheader (sha-256=:…:). - It builds the signature base: one line per covered component (
"@method","@authority","@path","content-digest"), then the"@signature-params"line with the covered list and parameters:created,expires,keyid,alg,nonceandtag. - It signs the base with its private key (Ed25519 by default) and sends two headers:
Signature-Input: sig1=(…);created=…;keyid="…"andSignature: sig1=:base64:. - The seller rebuilds the same base from the request it received and checks the signature against the public key it fetched from the passport directory (a JWKS, keyed by
kid).
Change one byte of a covered component and the signature no longer verifies. Use Tamper with the body to see the Content-Digest and signature checks fail.
What a seller should check#
- The signature covers at least
@method,@authorityand@path, pluscontent-digestwhenever there is a body. createdisn't in the future andexpireshasn't passed. Keep the window short (five minutes or less).- The
noncehasn't been seen before for this key, which stops replays. - The
keyidresolves to an active key in the passport directory, and the passport's agent isn't frozen. - With the hosted Verify API, also check the owner's verification level and that an active mandate covers this seller and amount.
The Verify for sellers guide covers the middleware and receipts, and Keys and passports is the API for agent keys, rotation and the directory. The tag parameter marks the profile: ndstill-passport, or web-bot-auth for the Web Bot Auth profile.