Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:49:57+00:00 2026-06-07T12:49:57+00:00

Jruby jruby-1.7.0.preview1 JDK: Java(TM) SE Runtime Environment (build 1.7.0_05-b05) I’m getting data from a

  • 0

Jruby jruby-1.7.0.preview1
JDK: Java(TM) SE Runtime Environment (build 1.7.0_05-b05)

I’m getting data from a REST webservice over HTTPS, and for days now it’s been fine.

I upgraded to Ubuntu 12.04 (from 11.10) over the weekend – and now this fails. I can only assume that something changed in my JVM during that time. I had thought I was on Java 7 before, so I’m very confused.

Either way the code that is fails on is the Net::HTTP.start part of:

require "net/http"

Net::HTTP.start(uri.host, :use_ssl => true, :ca_path => "/etc/ssl/certs") do |http|
  #...
end

And the error is:

OpenSSL::SSL::SSLError: Certificates does not conform to algorithm constraints
    from org/jruby/ext/openssl/SSLSocket.java:180:in `connect'
    from /opt/jruby/active/lib/ruby/1.9/net/http.rb:799:in `connect'
    from org/jruby/ext/timeout/Timeout.java:103:in `timeout'
    from /opt/jruby/active/lib/ruby/1.9/net/http.rb:799:in `connect'
    from /opt/jruby/active/lib/ruby/1.9/net/http.rb:755:in `do_start'
    from /opt/jruby/active/lib/ruby/1.9/net/http.rb:744:in `start'
    from /opt/jruby/active/lib/ruby/1.9/net/http.rb:557:in `start'

Any help would be appreciated.

EDIT:

I just tested this on Java 6, and it worked fine.

I’m wondering if it has to do with: https://forums.oracle.com/forums/thread.jspa?threadID=2405379

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:49:59+00:00Added an answer on June 7, 2026 at 12:49 pm

    Found a solution outlined here:
    http://sim.ivi.co/2011/07/java-se-7-release-security-enhancements.html

    Short version:
    Go into java_home/jre/lib/security/java.security
    And change

    jdk.certpath.disabledAlgorithms=MD2
    

    to

    jdk.certpath.disabledAlgorithms=
    

    However, please be aware that this re-enables MD2 hashing, which has proven to not be secure.

    See:
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2409

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In JRuby, you can just use java.lang.Runtime.get_runtime.available_processors . Is there anything available for MRI,
I'm trying to use boilerpipe from JRuby. I've seen the guide for calling Java
Description: If we use java objects jruby get permgen too: System.out.println(Initialazing..); //Spring applicaton context
Hi I am using JRuby to interact with a Java class. I have successfully
JRuby script.rb throws many Java errors. I tried outputting to a text file, but
My Ruby (JRuby) app loads a couple of Java libraries (not maintained by my
I am pretty new to jruby and java and want to create a servlet
In my app (jruby, rails 3, mongodb) I setup my data access objects (and
Trying to install some gems under jruby 1.6, but getting connection refused: $ gem
$> jruby -v jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [x86-java] $>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.