Skip to content

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 anakinj force-pushed the support-openssl-3 branch from a72a4e4 to d4db08f Compare July 23, 2022 08:20
@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.

1 participant