-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Using ECDSA private key causes OpenSSL::PKey::RSAError #661
Comments
@bojan-drljaca-lu This is now supported experimentally in #705. I'm still working on the test cases. |
This was referenced Jul 7, 2024
@bojan-drljaca-lu please try my #705 branch its ready for testing. |
@bojan-drljaca-lu let us know how your test goes |
Closing as this has been merged to the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like only RSA private key type can be used since ECDSA private key is not supported and exception
OpenSSL::PKey::RSAError
is raised with error messageNeither PUB key nor PRIV key: nested asn1 error
. I'm trying to do SAML request signing and there is no option to change this and line of code that breaks in a gem isOpenSSL::PKey::RSA.new(formatted_private_key)
inlib/onelogin/ruby-saml/settings.rb
and method isget_sp_key
. Is there a possibility to change this sinceOpenSSL
library does support reading different key reference https://docs.ruby-lang.org/en/2.4.0/OpenSSL/PKey.htmlThe PKey module offers support for three popular public/private key algorithms:
The text was updated successfully, but these errors were encountered: