Skip to content

Conversation

@anakinj
Copy link
Member

@anakinj anakinj commented Dec 28, 2024

Description

The JWA spec states for the RS and PS algos: "A key of size 2048 bits or larger MUST be used with these algorithms"

https://datatracker.ietf.org/doc/html/rfc7518#section-3.3
https://datatracker.ietf.org/doc/html/rfc7518#section-3.5

Fixes #635

Checklist

Before the PR can be merged be sure the following are checked:

  • There are tests for the fix or feature added/changed
  • A description of the changes and a reference to the PR has been added to CHANGELOG.md. More details in the CONTRIBUTING.md

@anakinj anakinj merged commit c073c98 into jwt:main Dec 28, 2024
22 checks passed
nicolastemciuc added a commit to cedarcode/webauthn-ruby that referenced this pull request Sep 22, 2025
    - JWT 3 requires the RSA key to be 2048 bits, see: jwt/ruby-jwt#661
nicolastemciuc added a commit to cedarcode/webauthn-ruby that referenced this pull request Sep 22, 2025
    - JWT 3 requires the RSA key to be 2048 bits, see: jwt/ruby-jwt#661
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

Successfully merging this pull request may close these issues.

encode() raises an RSA lib error when using a small RSA PSS key

1 participant