-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello and thanks for the good work on this library.
While I was using it I came across one inconsistency with respect to handling x5c
certificates on various asymmetric keys. It looks that in principle
JWK.__init__(self, kty, alg, use, kid, x5c, x5t, x5u, **kwargs) |
x5c
on the key instance but only for RSAKey
s this is also included in serialize()
. JWTConnect-Python-CryptoJWT/src/cryptojwt/jwk/rsa.py
Lines 384 to 385 in 69b064b
if self.x5c: | |
res["x5c"] = [as_unicode(x) for x in self.x5c] |
Is this intentional? In principal I see no problem, that also other asymmetric keys could have a x5c certificate attached to it, in particular the ECKey
.
Would you consider this a reasonable change?
Metadata
Metadata
Assignees
Labels
No labels