Skip to content

Commit

Permalink
Initial fix for missing Java 8 ciphers
Browse files Browse the repository at this point in the history
This adds one specific cipher suite only, which we are using internally to
connect to redis over SSL.
  • Loading branch information
mattbooks committed Aug 3, 2018
1 parent 035a5e1 commit eeaf644
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Binary file added jopenssl.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/jopenssl/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Jopenssl
VERSION = '0.9.21'
VERSION = '0.9.21.ciphers.2'
BOUNCY_CASTLE_VERSION = '1.56'
# @deprecated
module Version
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
<modelVersion>4.0.0</modelVersion>
<groupId>rubygems</groupId>
<artifactId>jruby-openssl</artifactId>
<version>0.9.21</version>
<version>0.9.21.ciphers.2</version>
<packaging>gem</packaging>
<name>JRuby OpenSSL</name>
<description>JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.</description>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/org/jruby/ext/openssl/CipherStrings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,12 @@ private static Collection<Def> matchingPattern(
SSL_NOT_EXP|SSL_HIGH, 128, 256, SSL_ALL_CIPHERS, SSL_ALL_STRENGTHS
));

SuiteToOSSL.put("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", name = "ECDHE-RSA-AES128-GCM-SHA256");
CipherNames.put(name, new Def(name,
SSL_kECDHE|SSL_RSA|SSL_AES|SSL_SHA|SSL_TLSV1,
SSL_NOT_EXP, 128, 256, SSL_ALL_CIPHERS, SSL_ALL_STRENGTHS

This comment has been minimized.

Copy link
@csstaub

csstaub Nov 15, 2018

Missing SSL_HIGH?

));

SuiteToOSSL.put("TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", name = "ECDHE-RSA-AES256-SHA384");
CipherNames.put(name, new Def(name,
SSL_kECDHE|SSL_aRSA|SSL_AES|SSL_SHA|SSL_TLSV1,
Expand Down

0 comments on commit eeaf644

Please sign in to comment.