Path A C-5: pin issuer X25519 pubkey in client (anti TLS-MITM)

Get-BwIssuerPublicKey now validates the live /pubkey response against an embedded pinned kid + full pubkey value (-cne), returns the embedded constant, and fails closed on any mismatch. kid mismatch = rotation signal (outdated exe -> tell user to update); pubkey mismatch = MITM/tamper. Pins the post-rotation key (kid Dqm0ahDMRDg; prior key retired after exposure). Embedded base64 regenerated by build.ps1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
bookworm-admin 2026-06-30 00:34:07 +08:00
parent c6f89aad79
commit 0e5a0d9921

File diff suppressed because one or more lines are too long