[Openid-specs-ab] Issue #1148: Certification and kid (openid/connect)

Nat issues-reply at bitbucket.org
Wed Jan 8 13:55:15 UTC 2020


New issue 1148: Certification and kid
https://bitbucket.org/openid/connect/issues/1148/certification-and-kid

Nat Sakimura:

I found the following in the jose list. It is mentioning OpenID Certification.   

```
Hello,

I have a question regarding the section 4.5 of the RFC-7517 which states:

4.5.  "kid" (Key ID) Parameter

   The "kid" (key ID) parameter is used to match a specific key.  This
   is used, for instance, to choose among a set of keys within a JWK Set
   during key rollover.  The structure of the "kid" value is
   unspecified.  When "kid" values are used within a JWK Set, different
   keys within the JWK Set SHOULD use distinct "kid" values.  (One
   example in which different keys might use the same "kid" value is if
   they have different "kty" (key type) values but are considered to be
   equivalent alternatives by the application using them.)  The "kid"
   value is a case-sensitive string.  Use of this member is OPTIONAL.
   When used with JWS or JWE, the "kid" value is used to match a JWS or
   JWE "kid" Header Parameter value.



The part which is raising concerns is:

When "kid" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct "kid" values.


Context:


I am using an openid certified node library which does not allow for multiple keys with the same ID.
An issue has been opened (and closed) where the author/maintainer states that the keys should have different kids and the problem is with the issuer.


The issuer (based on identity server 4) which I connect to states the opposite.. That the offending keys (the repeating ones) are not different keys but the same and, as such, can use the same kid.


Question:


Which party is correct?


Thank you for your time,


Ricardo Pereira

```

‌





More information about the Openid-specs-ab mailing list