RefineID

Passkeys on a card

A passkey keeps its private key in an authenticator instead of a password database. RefineID keeps it on a Finnish ID card, where the card signs and the PIN never leaves the phone. That is the whole idea, and it runs into a negotiation that decides whether a site can be served at all.

What a site asks for

Creating a passkey begins with the relying party sending PublicKeyCredentialCreationOptions, which includes pubKeyCredParams: the signature algorithms it is prepared to verify. The authenticator picks one it can produce and names it in the credential's COSE key. The algorithm is not a preference; it is bound to the key and to the curve.

pubKeyCredParams: [
  { type: "public-key", alg: -7 },    // ES256, ECDSA P-256 with SHA-256
  { type: "public-key", alg: -257 }   // RS256, RSASSA-PKCS1-v1_5 with SHA-256
]

Why a card is different

The FINEID authentication key is an ECDSA P-384 key, so the only credential it can produce is ES384 (alg: -35). A P-384 key cannot sign P-256: the signature size, the hash and the verification routine all differ. When a site offers only ES256 and RS256, there is no algorithm the card can answer, and a correct authenticator refuses rather than inventing a credential.

That refusal is not a bug in the site or the card. It is the algorithm negotiation working as written. A relying party that wants card-backed credentials must list ES384 in pubKeyCredParams, and verify 96-byte ECDSA signatures with SHA-384.

The second gate: the platform

On Android the browser hands the credential to Credential Manager, which passes the request to the credential provider and converts the provider's response back into a Mojo object. The conversion is strict: the response needs a well-formed attestationObject for a registration and authenticatorData plus signature for an assertion, each base64url encoded, with clientDataJSON hashing to the value the platform asked the provider to sign. A response missing a member fails here, before the relying party sees anything.

A site that asks

passkeydemo.refineid.fi is a guestbook whose relying party accepts ES384 alongside the algorithms platform passkeys use. It verifies the ceremony itself: the challenge it issued, the origin it serves, the relying party identifier, the user-presence and user-verification flags, and the signature over the authenticator data and the hashed client data.

Accepted credential algorithms
COSENameAuthenticator
-35ES384FINEID card, ECDSA P-384
-7ES256Platform passkeys, ECDSA P-256
-257RS256Platform passkeys, RSA
-8EdDSAPlatform passkeys, Ed25519

Sign in there with a card-backed credential or an ordinary platform passkey and the same checks decide. That is what a relying party has to do for card passkeys to be usable, and it is a small, well-specified amount of work.

What this does not change

It does not make mainstream sites accept a P-384 card. Those sites choose ES256 and RS256, and a card authenticator cannot answer them. Reaching those sites needs a key the card can sign ES256 with, which is a question about the card's key material and its certificate policy, not about the browser.