-
Notifications
You must be signed in to change notification settings - Fork 42
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
OpenSSL 3.0 error - rsa#set_key= #138
Comments
Interestingly, we are checking if Lines 108 to 114 in 5e2e366
So unfortunately, the openssl ruby wrapper does not appear to surface that information dynamically (anymore?) General openssl3 support was added here: #129 |
Trying to run lines 108 and line 110 (with admittedly random input) on a Silicon Mac with LibreSSL 3.3.6 and ruby 3.1.3 also works. Edit: I think I installed the ruby version with its own OpenSSL, which would result in Ruby not using libressl With that it actually works correctly, so I am pretty confident that the issue is LibreSSL |
Thanks a lot @tobischo
The only way I was able to make it work is to replace the |
So the method is technically there, which is why That means we'd need a different way of differentiating this properly |
Hi thanks for the mention, interesting stuff going on here:) This problem as you discovered was introduced via the major version upgrade of OpenSSL from 1.1 -> 3.0 making the PKey immutable. The proposed solution I've been working on is visible on ruby/openssl#555 and will make it a little easier to create keys from raw parameters. But until that is available a way to create these keys are by generating the DER representation of the parameters and creating the key based on that. An example on how ruby-jwt solved this issue |
@frantisekrokusek Please take a look at #140 and check if that would work for you @anakinj your input would also be appreciated. |
Feedback on #140 was positive. Merged, tagged as 2.1.1. Will close the issue. Unfortunately I still don't have permission to release to rubygems |
Hi guys,
I was testing your library with the great https://iso20022test.credit-suisse.com/ testing accounts.
But I have got that error on
client.HPB
step:Is that a known issue ?
Thanks for your help 🙏
ruby -> ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin21]
openssl-> LibreSSL 2.8.3
epics -> 2.0.0
The text was updated successfully, but these errors were encountered: