JRuby

Initializing a OpenSSL::PKey::RSA or OpenSSL::PKey::DSA with an invalid private key raises Java::JavaLang::ClassCastException