Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JRuby-OSSL 0.7.5, JRuby-OSSL 0.7.6
    • Fix Version/s: None
    • Component/s: OpenSSL
    • Labels:
      None
    • Environment:
      ubuntu rvm
    • Number of attachments :
      1

      Description

      file=File.open("encrypted_rsa_key")
      OpenSSL::PKey::RSA.new(file.read,"this would be my passphrase") => OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key

      1. serverkey.pem
        1 kB
        John-Paul Sitarski

        Activity

        Hide
        Hiroshi Nakamura added a comment -

        Yes!

        Show
        Hiroshi Nakamura added a comment - Yes!
        Hide
        Hiroshi Nakamura added a comment -

        Note: The pem uses PBES2 instead of general PBKDF2 used in PKCS#12. We should support this.

        Show
        Hiroshi Nakamura added a comment - Note: The pem uses PBES2 instead of general PBKDF2 used in PKCS#12. We should support this.
        Hide
        Hiroshi Nakamura added a comment -
        commit ebf5545f302f185f89a9e059f2b77aca0a8c1159
        Author: Hiroshi Nakamura <nahi@ruby-lang.org>
        Date:   Sun May 13 14:09:33 2012 +0900
        
            JRUBY-6622: Support loading encrypted RSA key with PBES2
            
            Yet another BouncyCastle dependency.  Root cause is because we depend on
            BC for ASN.1.
        

        Can you try master branch of jruby-ossl? Our CI is likely stopping now.

        Show
        Hiroshi Nakamura added a comment - commit ebf5545f302f185f89a9e059f2b77aca0a8c1159 Author: Hiroshi Nakamura <nahi@ruby-lang.org> Date: Sun May 13 14:09:33 2012 +0900 JRUBY-6622: Support loading encrypted RSA key with PBES2 Yet another BouncyCastle dependency. Root cause is because we depend on BC for ASN.1. Can you try master branch of jruby-ossl? Our CI is likely stopping now.
        Hide
        Hiroshi Nakamura added a comment -

        Thanks to Hiro, Mr. Jenkins has woke up. Please grab the latest gem (0.7.7.dev) from http://ci.jruby.org/job/jruby-ossl/

        Show
        Hiroshi Nakamura added a comment - Thanks to Hiro, Mr. Jenkins has woke up. Please grab the latest gem (0.7.7.dev) from http://ci.jruby.org/job/jruby-ossl/
        Hide
        Gregory Manushkin added a comment - - edited

        hi! it seems this ticket repeat or bind with 6826. i've got the same problem with jruby-1.7.1 and jruby-openssl-0.8.2

        Show
        Gregory Manushkin added a comment - - edited hi! it seems this ticket repeat or bind with 6826. i've got the same problem with jruby-1.7.1 and jruby-openssl-0.8.2

          People

          • Assignee:
            Hiroshi Nakamura
            Reporter:
            Pedro Rolo
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: