You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let(:options) do
{
:ssl => true,
:ssl_cert => CLIENT_CERT_PEM,
:ssl_key_string => key_string,
:ssl_key_object => 'This is a string, not a PKey',
:ssl_verify => false
}
end
When we run the test we get the following exception:
We have a test in the mongo ruby driver which attempts to pass a string as a key in openssl context:
https://github.com/mongodb/mongo-ruby-driver/blob/master/spec/mongo/socket/ssl_spec.rb#L240
When we run the test we get the following exception:
The offending method appears to be https://github.com/jruby/jruby-openssl/blob/master/src/main/java/org/jruby/ext/openssl/impl/PKey.java#L171.
This method should perhaps catch ClassCastException and map it to InvalidKeySpecException.
Same error on 9.2:
The text was updated successfully, but these errors were encountered: