Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support for adding more fields into the header, such as x5c, x5t, x5t#S256, etc. #373

Open
mgrebenets opened this issue Dec 13, 2024 · 1 comment

Comments

@mgrebenets
Copy link

Summary

While creating JWT signed with RSA key it is a standard practice to include the leaf certificate itself as part of JOSE header using "x5c" field.
Additionally, other certs from the chain can be included in "x5c" or their thumbprints can be included into "x5t" or it's variants.

I wouldn't mind being able to add those myself, but currently there doesn't seem to be a way to do so?
Is there actually a way to add custom entries to the JOSE header?
Like --alg not only specifies the signing algorithm but also adds "alg" to header.
I'd need to be able to add "x5c" header entry, for example.

Is it possible or does it require implementation?

@mike-engel
Copy link
Owner

@mgrebenets it's nos possible right now, but the underlying library does support those headers. Can you provide an example of what would it would look like with the cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants