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

Support OpenSSL >= 3.0 #496

Merged
merged 6 commits into from
Jul 27, 2022
Merged

Support OpenSSL >= 3.0 #496

merged 6 commits into from
Jul 27, 2022

Conversation

anakinj
Copy link
Member

@anakinj anakinj commented Jun 23, 2022

OpenSSL 3.0 is taking over and that brings some compatibility challenges to gems like this. Related to #495.

https://github.com/ruby/openssl/blob/master/History.md#compatibility-notes

The change that has the most impact on the ruby-jwt gem is that the key and keypairs that are created using openssl is not mutable anymore. Before the Ruby openssl gem provides some nicer API to generate them based on the raw parameters we need to generate the ASN.1 sequences and have them as the base for creating the key objects.

@anakinj anakinj force-pushed the support-openssl-3 branch 2 times, most recently from aa0cb4c to e9fd617 Compare June 24, 2022 08:50
@sourcelevel-bot
Copy link

SourceLevel has finished reviewing this Pull Request and has found:

  • 2 possible new issues (including those that may have been commented here).

See more details about this review.

@anakinj
Copy link
Member Author

anakinj commented Jun 24, 2022

The behaviour is different when passing an empty secret to the HMAC signing because of openssl/openssl#13089

Just marked the tests as pending for openssl 3

@anakinj
Copy link
Member Author

anakinj commented Jul 27, 2022

Im going to trust the tests and merge this one. It works at least better than the current version...

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.

None yet

1 participant