How must mso_mdoc credential signing algorithms be advertised in OID4VCI metadata?
mso_mdoc signing algorithms as numeric COSE algorithm identifiersOID4VCI 1.0 §12.2.4MUSTRoles: issuer
Requirement as recorded in the ProtocolSoup registry
mso_mdoc Credential Configurations advertise credential signing algorithms as numeric COSE algorithm identifiers.
Read §12.2.4 in OID4VCI 1.0Self-test verdict
PassCommit 00bac3fEvaluated
This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.
Captured from production
Captured Commit 00bac3f
Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.
Passing exchange
Accepted, as requiredConformance client
The conformance client fetches Credential Issuer Metadata from /.well-known/openid-credential-issuer/oid4vci. The capture checks that every mso_mdoc Credential Configuration lists credential_signing_alg_values_supported as JSON integers, the numeric COSE algorithm identifiers, not JOSE names.
Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.
1.GET https://protocolsoup.com/.well-known/openid-credential-issuer/oid4vci200 OK
TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2
Request
GET /.well-known/openid-credential-issuer/oid4vci HTTP/2.0 Accept: application/json Host: protocolsoup.com User-Agent: ProtocolSoup-Conformance-Client/1
Response
HTTP/2.0 200 OK Cache-Control: no-store Cf-Cache-Status: DYNAMIC Cf-Ray: a65b92d458751425-MSP Content-Type: application/json Date: Sun, 06 Dec 2026 13:17:55 GMT Fly-Request-Id: 01M95R20662YW1FJEADYW2WKQ2-ord Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800} Pragma: no-cache Referrer-Policy: strict-origin-when-cross-origin Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=nHhkh%2BY14MTvNA6JGwaKucmtG6OiiEQ8sbuDoRaeqZ5y80s8MQv3RNFOzIzVmvkSDG3SudRlgiIAkGow7YmeYgDvaB8Yo0qV6VH96aFWAnItbyRD%2BwtLRVaTCiL4WRQ0lu8%3D"}]} Server: cloudflare Speculation-Rules: "/cdn-cgi/speculation" Vary: Origin Vary: accept-encoding Via: 1.1 fly.io, 1.1 fly.io X-Content-Type-Options: nosniff X-Frame-Options: DENY X-Xss-Protection: 1; mode=block {"authorization_servers":["https://protocolsoup.com/oid4vci"],"batch_credential_issuance":{"batch_size":20},"credential_configurations_supported":{"MobileDrivingLicenceMsoMdoc":{"credential_metadata":{"claims":[{"mandatory":true,"path":["org.iso.18013.5.1","family_name"]},{"mandatory":true,"path":["org.iso.18013.5.1","given_name"]},{"mandatory":true,"path":["org.iso.18013.5.1","birth_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","issue_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","expiry_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","issuing_country"]},{"mandatory":true,"path":["org.iso.18013.5.1","issuing_authority"]},{"mandatory":true,"path":["org.iso.18013.5.1","document_number"]},{"mandatory":true,"path":["org.iso.18013.5.1","portrait"]},{"mandatory":true,"path":["org.iso.18013.5.1","un_distinguishing_sign"]},{"mandatory":true,"path":["org.iso.18013.5.1","driving_privileges"]},{"path":["org.iso.18013.5.1","age_over_21"]}],"display":[{"locale":"en-US","name":"Mobile Driving Licence (ISO/IEC 18013-5 mso_mdoc)"}]},"credential_signing_alg_values_supported":[-7],"cryptographic_binding_methods_supported":["cose_key"],"doctype":"org.iso.18013.5.1.mDL","format":"mso_mdoc","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256"]}},"scope":"vc:mdl"},"MobileDrivingLicenceMsoMdocHAIP":{"credential_metadata":{"claims":[{"mandatory":true,"path":["org.iso.18013.5.1","family_name"]},{"mandatory":true,"path":["org.iso.18013.5.1","given_name"]},{"mandatory":true,"path":["org.iso.18013.5.1","birth_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","issue_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","expiry_date"]},{"mandatory":true,"path":["org.iso.18013.5.1","issuing_country"]},{"mandatory":true,"path":["org.iso.18013.5.1","issuing_authority"]},{"mandatory":true,"path":["org.iso.18013.5.1","document_number"]},{"mandatory":true,"path":["org.iso.18013.5.1","portrait"]},{"mandatory":true,"path":["org.iso.18013.5.1","un_distinguishing_sign"]},{"mandatory":true,"path":["org.iso.18013.5.1","driving_privileges"]},{"path":["org.iso.18013.5.1","age_over_21"]}],"display":[{"locale":"en-US","name":"Mobile Driving Licence (ISO/IEC 18013-5 mso_mdoc, HAIP key-attested)"}]},"credential_signing_alg_values_supported":[-7],"cryptographic_binding_methods_supported":["cose_key"],"doctype":"org.iso.18013.5.1.mDL","format":"mso_mdoc","proof_types_supported":{"jwt":{"key_attestations_required":{},"proof_signing_alg_values_supported":["ES256"]}},"scope":"vc:mdl"},"UniversityDegreeCredential":{"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (SD-JWT VC)"}]},"credential_signing_alg_values_supported":["ES256"],"cryptographic_binding_methods_supported":["jwk"],"format":"dc+sd-jwt","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256","RS256"]}},"scope":"vc:university_degree","vct":"https://protocolsoup.com/credentials/university_degree"},"UniversityDegreeCredentialJWT":{"credential_definition":{"type":["VerifiableCredential","UniversityDegreeCredential"]},"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (JWT VC JSON)"}]},"credential_signing_alg_values_supported":["RS256"],"cryptographic_binding_methods_supported":["did:jwk","did:key"],"format":"jwt_vc_json","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256","RS256"]}},"scope":"vc:university_degree"},"UniversityDegreeCredentialJWTLD":{"credential_definition":{"@context":["https://www.w3.org/2018/credentials/v1","https://protocolsoup.com/oid4vci/contexts/university-degree/v1"],"type":["VerifiableCredential","UniversityDegreeCredential"]},"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (JWT VC JSON-LD)"}]},"credential_signing_alg_values_supported":["RS256"],"cryptographic_binding_methods_supported":["did:jwk","did:key"],"format":"jwt_vc_json-ld","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256","RS256"]}},"scope":"vc:university_degree"},"UniversityDegreeCredentialLDP":{"credential_definition":{"@context":["https://www.w3.org/2018/credentials/v1","https://protocolsoup.com/oid4vci/contexts/university-degree/v1","https://w3id.org/security/data-integrity/v2"],"type":["VerifiableCredential","UniversityDegreeCredential"]},"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (Data Integrity)"}]},"cryptographic_binding_methods_supported":["did:jwk","did:key"],"format":"ldp_vc","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256"]}},"scope":"vc:university_degree"},"UniversityDegreeCredentialSDJWT":{"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (SD-JWT VC)"}]},"credential_signing_alg_values_supported":["ES256"],"cryptographic_binding_methods_supported":["jwk"],"format":"dc+sd-jwt","proof_types_supported":{"jwt":{"proof_signing_alg_values_supported":["ES256","RS256"]}},"scope":"vc:university_degree","vct":"https://protocolsoup.com/credentials/university_degree"},"UniversityDegreeCredentialSDJWTHAIP":{"credential_metadata":{"display":[{"locale":"en-US","name":"University Degree (SD-JWT VC, HAIP)"}]},"credential_signing_alg_values_supported":["ES256"],"cryptographic_binding_methods_supported":["jwk"],"format":"dc+sd-jwt","proof_types_supported":{"jwt":{"key_attestations_required":{},"proof_signing_alg_values_supported":["ES256"]}},"scope":"vc:university_degree_haip","vct":"https://protocolsoup.com/oid4vci/credential-types/university-degree"}},"credential_endpoint":"https://protocolsoup.com/oid4vci/credential","credential_issuer":"https://protocolsoup.com/oid4vci","credential_request_encryption":{"enc_values_supported":["A128GCM","A256GCM"],"encryption_required":false,"jwks":{"keys":[{"kty":"EC","use":"enc","kid":"oid4vci-credential-request-encryption","alg":"ECDH-ES","crv":"P-256","x":"8lvjVrRh3QqympPa2yaXKffCJUQwLqp3_zx9KG9qqrE","y":"_Nefq5mn676laDvdeIUFz7UufFTnFvnma7kGVDq-8t4"}]}},"credential_response_encryption":{"alg_values_supported":["ECDH-ES"],"enc_values_supported":["A128GCM","A256GCM"],"encryption_required":false},"deferred_credential_endpoint":"https://protocolsoup.com/oid4vci/deferred_credential","display":[{"locale":"en-US","name":"ProtocolSoup Credential Issuer"}],"nonce_endpoint":"https://protocolsoup.com/oid4vci/nonce","notification_endpoint":"https://protocolsoup.com/oid4vci/notification"}
Failing exchange
Not captured: The requirement constrains what the issuer publishes in its own metadata, and no request a client sends can make it advertise a different value.
Run it live
Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.
Open the flow in Looking GlassTests
- TestCredentialIssuerMetadataIncludesMultiFormatConfigurations
./internal/protocols/oid4vci
Pass
Implementation
Explainer
What this requires
Section 12.2.4 defines credential_signing_alg_values_supported and says its "Algorithm identifier types and values used are determined by the Credential Format and are defined in Appendix A." For mso_mdoc, Appendix A.2.2 says the identifiers "correspond to the numeric COSE algorithm identifiers used to secure the IssuerAuth COSE structure, as defined in [ISO.18013-5]."
ES256 is therefore -7, a JSON number, not the string "ES256". Appendix A.2.2 also allows a fully specified algorithm such as -9 when the signing key's curve matches. It notes that the parameter "is primarily informational for the Wallet."
Why it exists
An mdoc's IssuerAuth is a COSE_Sign1 structure, and its alg header is a COSE integer. Advertising the same kind of value lets a Wallet compare metadata directly with what it will find in the Credential. JOSE names belong to JWT-based formats, and a value from the wrong registry matches nothing.
What non-compliance looks like
An issuer reuses its SD-JWT configuration code and advertises ["ES256"] for an mso_mdoc configuration. Or it advertises the right number as a string, ["-7"]. A Wallet that filters configurations by supported algorithms finds no match and skips a Credential it could have handled.
How ProtocolSoup tests it
In registry.go, both mso_mdoc configurations (MobileDrivingLicenceMsoMdoc and MobileDrivingLicenceMsoMdocHAIP) set CredentialSigningAlgs to the integer -7. The mdoc issuance driver signs IssuerAuth with the P-256 document signer key. The SD-JWT configurations advertise JOSE strings such as "ES256" and "RS256".
TestCredentialIssuerMetadataIncludesMultiFormatConfigurations fetches Credential Issuer Metadata and checks the formats of five configurations. For both mdoc configurations it asserts that credential_signing_alg_values_supported is exactly one element equal to the JSON number -7, and that claims sit under credential_metadata. It also asserts that SD-JWT configurations use vct and that W3C configurations are not advertised. It does not decode an issued mdoc to compare the IssuerAuth alg header with the advertised value.