JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-6579

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

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby-OSSL 0.7.7
    • Component/s: OpenSSL
    • Labels:
      None
    • Number of attachments :
      0

      Description

      If the summary isn't enough info, you can reproduce in my SSHKey lib by doing the following under JRuby:

      git clone git://github.com/bensie/sshkey.git
      cd sshkey
      # edit lib/sshkey.rb, line 102 so it says "rescue" instead of "rescue Exception"
      bundle install
      rake
      

      Twitter conversation with @headius:
      https://twitter.com/#!/bensie/status/187660891825778688

        Activity

        Hide
        Hiroshi Nakamura added a comment -

        Thanks for reporting!

        commit 2f134d402abdb97be8da5ebd17fe8bb436985842
        Author: Hiroshi Nakamura <nahi@ruby-lang.org>
        Date:   Mon Apr 30 12:33:39 2012 +0900
        
            JRUBY-6579: Avoid ClassCastException for public key loading
        
        Show
        Hiroshi Nakamura added a comment - Thanks for reporting! commit 2f134d402abdb97be8da5ebd17fe8bb436985842 Author: Hiroshi Nakamura <nahi@ruby-lang.org> Date: Mon Apr 30 12:33:39 2012 +0900 JRUBY-6579: Avoid ClassCastException for public key loading

          People

          • Assignee:
            Hiroshi Nakamura
            Reporter:
            James Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: