FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Missing "x5c" key for serialized ECKey and others. · Issue #165 · IdentityPython/JWTConnect-Python-CryptoJWT · GitHub

Repository navigation

Missing "x5c" key for serialized ECKey and others. #165

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)
will store the x5c on the key instance but only for RSAKeys this is also included in serialize().
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?

Activity

  1. jschlyter commented on Jul 26, 2024

    Collaborator

    I believe it is reasonable to include x5c for all keys - please submit a PR (with tests)

  2. self-assigned this
    on Jul 26, 2024
  3. sallner commented on Jul 29, 2024

    Author

    Thanks for the positive feedback. I will try to sort out the CLA with my employer and come back to this ASAP.

  4. jschlyter commented on Mar 4, 2025

    Collaborator

    Any updates @sallner ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL