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

openssl error with quickcert code - unknown algorithm in keypair.export

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.4
    • Fix Version/s: JRuby-OpenSSL 0.6
    • Component/s: OpenSSL
    • Labels:
      None
    • Environment:
      Ubuntu 9.04, JRuby 1.4
    • Number of attachments :
      0

      Description

      http://gist.github.com/242281
      checked by Headius and confirmed error in IRC

        Activity

        Hide
        Nick Sieger added a comment -

        I ran this script and it also failed on MRI, although in a different place. Should you have CA[:hostname] and CA[:domainname] entries for your quick cert script?

        Show
        Nick Sieger added a comment - I ran this script and it also failed on MRI, although in a different place. Should you have CA [:hostname] and CA [:domainname] entries for your quick cert script?
        Hide
        Paul Fraser added a comment -

        I have changed code back to the quick_cert gem code and included CA[:domainname] and CA[:hostname] (sorry about that)
        http://gist.github.com/243275
        works on mri 1.8.6, fails in jruby 1.4 (in netbeans project)
        If run as in the gist it first fails at cert.add_extension line 116 (jruby-openssl does not seem to cover this method).
        If the add_extension stuff is moved up within the array line 110, the code fails with the original problem 'unknown algorithm in write_DSAPrivateKey'

        Show
        Paul Fraser added a comment - I have changed code back to the quick_cert gem code and included CA [:domainname] and CA [:hostname] (sorry about that) http://gist.github.com/243275 works on mri 1.8.6, fails in jruby 1.4 (in netbeans project) If run as in the gist it first fails at cert.add_extension line 116 (jruby-openssl does not seem to cover this method). If the add_extension stuff is moved up within the array line 110, the code fails with the original problem 'unknown algorithm in write_DSAPrivateKey'
        Hide
        Nick Sieger added a comment -

        Please try the latest jruby-openssl 0.6 release. I was able to do some simple quickcert things with it.

        Show
        Nick Sieger added a comment - Please try the latest jruby-openssl 0.6 release. I was able to do some simple quickcert things with it.
        Hide
        Paul Fraser added a comment -

        Thanks, Nick..using 0.6 the error does not occur

        Show
        Paul Fraser added a comment - Thanks, Nick..using 0.6 the error does not occur
        Hide
        Nick Sieger added a comment -

        Fixed as per reporter.

        Show
        Nick Sieger added a comment - Fixed as per reporter.

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul Fraser
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: