Skip to content
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

JRuby does not support all SSL/TLS versions supported by Java #1737

Closed
aetherknight opened this issue Jun 11, 2014 · 1 comment
Closed

JRuby does not support all SSL/TLS versions supported by Java #1737

aetherknight opened this issue Jun 11, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@aetherknight
Copy link

Java 7 added TLS 1.1 and TLS 1.2 support, and JRuby already supports TLS 1.1 if it is available (although MRI 1.9.3 only supports SSLv3 and TLSv1). However, JRuby does not yet support TLS 1.2.

$ jruby -ropenssl -e 'p OpenSSL::SSL::SSLContext.new.ssl_version=:"TLSv1"'
:TLSv1

$ jruby -ropenssl -e 'p OpenSSL::SSL::SSLContext.new.ssl_version=:"TLSv1.1"'
:"TLSv1.1"

$ jruby -ropenssl -e 'p OpenSSL::SSL::SSLContext.new.ssl_version=:"TLSv1.2"'
OpenSSL::SSL::SSLError: unknown SSL method `TLSv1.2'.
  ssl_version= at org/jruby/ext/openssl/SSLContext.java:355
        (root) at -e:1

$ jruby -ropenssl -e 'p OpenSSL::SSL::SSLContext.new.ssl_version=:"TLSv1_2"'
OpenSSL::SSL::SSLError: unknown SSL method `TLSv1_2'.
  ssl_version= at org/jruby/ext/openssl/SSLContext.java:355
        (root) at -e:1

Split off of #1733

Note that #1735 was also filed regarding how to refer to newer TLS protocol versions.

@kares
Copy link
Member

kares commented Apr 15, 2015

setting OpenSSL::SSL::SSLContext.new.ssl_version=:"TLSv1_2"' works in 0.9.7 (on Java 7+)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants