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

Problems with openssl support #90

Closed
rdravi110 opened this issue Sep 1, 2022 · 2 comments
Closed

Problems with openssl support #90

rdravi110 opened this issue Sep 1, 2022 · 2 comments

Comments

@rdravi110
Copy link

I am trying to build rack-oauth2 for Debian and I am getting the following error.

Failures:

  1) Rack::OAuth2::Client#access_token! *args handling client authentication method when jwt_bearer auth method specified when private_key is given when EC key should be JWT bearer client assertion w/ auto-generated ES256-signed JWT assertion
     Failure/Error: private_key: OpenSSL::PKey::EC.new('prime256v1').generate_key,
     
     OpenSSL::PKey::PKeyError:
       pkeys are immutable on OpenSSL 3.0
     # ./spec/rack/oauth2/client_spec.rb:191:in `generate_key!'
     # ./spec/rack/oauth2/client_spec.rb:191:in `block (8 levels) in <top (required)>'
     # ./spec/rack/oauth2/client_spec.rb:89:in `block (5 levels) in <top (required)>'

Finished in 0.73756 seconds (files took 1.19 seconds to load)
403 examples, 1 failure

Failed examples:

rspec ./spec/rack/oauth2/client_spec.rb:197 # Rack::OAuth2::Client#access_token! *args handling client authentication method when jwt_bearer auth method specified when private_key is given when EC key should be JWT bearer client assertion w/ auto-generated ES256-signed JWT assertion  

Please help in resolving.

@nov
Copy link
Owner

nov commented Sep 1, 2022

this should fix it.
2803e1b

@nov nov closed this as completed Sep 14, 2022
@rdravi110
Copy link
Author

Thanks @nov , the commit did solve the issue.

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