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

Unexpected "certificate verify failed" which does not match MRI behavior

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Not A Bug
    • Affects Version/s: JRuby-OpenSSL 0.7
    • Fix Version/s: None
    • Component/s: OpenSSL
    • Labels:
      None
    • Environment:
      Linux
    • Number of attachments :
      0

      Description

      You can reproduce this issue with the following code:

      require 'open-uri'
      open("https://medioh-studio.s3.amazonaws.com/").read

      On MRI (1.8.7) I get this:

      OpenURI::HTTPError: 403 Forbidden

      Which is the expected error in this case. The SSL certificate is verified and the anticipated response code is returned from Amazon's servers.

      On JRuby 1.5.1 I get this:

      OpenSSL::SSL::SSLError: certificate verify failed

      This error seems to occur regardless of what version of jruby-openssl is installed. Perhaps open-uri is doing some custom stuff here which is breaking?

        Issue Links

          Activity

            People

            • Assignee:
              Hiroshi Nakamura
              Reporter:
              Tony Arcieri
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: