5.2 · Binding a credential to its holderWorking
Key binding and device binding
The issuer puts the holder’s public key into the credential. To present it, the wallet signs a fresh challenge from the verifier with the matching private key, ideally held in secure hardware that will not export it. A credential copied off the device then fails, because the copy cannot sign.
A key card that only works with a PIN pad built into the card.
Where it breaks:
- If the private key can be exported, or the device is compromised, the binding goes with it.
- That is why issuers may ask for evidence of where the key lives before they bind to it (5.5 Wallet attestation and key attestation).
Without Key Binding, a Verifier only gets the proof that the credential was issued by a particular Issuer, but the credential itself can be replayed by anyone who gets access to it.
The key goes in the credential’s confirmation claim RFC9901 §4.1.2, and the presentation carries a key-binding token over the verifier’s challenge RFC9901 §4.3. An mdoc proves the same through device authentication ISO-WG10-18013-5-ED2-WD §12.4. At issuance, the wallet proves it holds the key in its credential request OPENID4VCI-1.0 §8.2, in one of the defined proof types OPENID4VCI-1.0 §F.
- The verifier sees the public key in the credential. A key reused across credentials or verifiers is a link between them.
- Key binding proves the key is present. It does not prove who is holding the device.
- ISO-WG10-18013-5-ED2-WD ISO/IEC 18013-5 second edition, CD ballot resolution v4, published by ISO/IEC JTC 1/SC 17/WG 10
- OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0
- RFC9901 Selective Disclosure for JSON Web Tokens