-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not generate DH keypair #2872
Comments
unfortunately it seems specific to your ENV/OS ... could you maybe try updating Java (I'm not sure what your version
... you could also try updating OpenSSL to its latest |
Looks like you are using 1.9.3 . It works perfectly for me in "jruby --1.9 -S irb" . |
@tarcieri just reported this to the rails-assets.org folks. He believes their form of DH is not supported by the JVM, and the best option would probably be to just ditch DH. |
Yeah, the root cause is their external ciphersuite is using 4096-bit Diffie-Hellman, and the highest supported by the JVM is 1024-bit. However, even having Diffie-Hellman in your ciphersuite at all makes no sense, because elliptic curve Diffie-Hellman (i.e. ECDHE) is both faster and widely supported. I told them to shut off Diffie-Hellman entirely, which should fix the problem. |
Since today I started getting this error from the mixpanel-ruby client as well, it is due to a change they made to their server SSL config. For now I disabled using DHE in Java: java.security.Security.setProperty("jdk.tls.disabledAlgorithms", "SSLv3, DHE") It seems this must be done before any HTTPS requests are made. |
That change was probably motivated by the recent Logjam attack: Unfortunately, instead of switching to the faster, more modern and more secure ECDHE, several sites seem to be increasing DHE keystrength. IMO DHE should just be disabled. Cryptographer Matt Green said the same thing: http://blog.cryptographyengineering.com/
|
oh god 😒 |
I got the RubyGems people to roll back, but I'm guessing this is going to be a bigger and bigger problem, especially as the Logjam attack is getting people to try to tune up their D-H parameters: |
I'm using:
jruby 1.7.19 (2.0.0p598) 2015-01-29 20786bd on Java HotSpot(TM) 64-Bit Server VM 1.8.0-b132 +jit [darwin-x86_64]
I inserted this code into IRB:
I got this error:
This is problematic if you got rails-assets in the bundler gemfile.
rubygems/bundler#3588
The text was updated successfully, but these errors were encountered: