Skip to content

jruby/jruby-openssl

Repository files navigation

JRuby-OpenSSL

JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.

Under the hood uses the Bouncy Castle Crypto APIs.

Each jruby-openssl gem release includes a certain version, usually the latest available, of the library (namely BC Provider and PKIX/CMS/EAC/PKCS/OCSP/TSP/OPENSSL jars).

Please report bugs and incompatibilities (preferably with test-cases) to either the JRuby mailing list or the bug tracker.

Compatibility

JRuby-OpenSSLJRuby compatJVM compatsupported BC
0.9.61.6.8-9.0.2Java 6-81.47-1.50
0.9.121.6.8-9.0.5Java 6-81.47-1.52
0.9.131.6.8-9.1.2Java 6-81.49-1.52
0.9.141.6.8-9.1.5Java 6-81.49-1.54
0.9.171.6.8-9.1.5Java 6-81.50-1.54
~>0.9.181.6.8-9.1.xJava 6-81.50-1.55
0.10.01.7.20-9.2.xJava 7-101.55-1.59
0.10.31.7.20-9.2.xJava 7-111.56-1.62
~>0.10.51.7.20-9.3.xJava 7-111.60-1.68
~>0.11.x9.0.x-9.3.xJava 7-111.62-1.68
~>0.12.x9.1.x-9.3.xJava 8-151.65-1.68
~>0.13.x9.1.x-9.4.xJava 8-171.68-1.69
~>0.14.x9.1.x-9.4.xJava 8-211.71-1.74
~>0.15.x9.2.x-9.4.xJava 8-211.76-1.79

NOTE: backwards JRuby compatibility was not handled for versions <= 0.9.6

Security

JRuby-OpenSSL is an essential part of JRuby, please report security vulnerabilities to [email protected] as detailed on JRuby's security page or using GitHub.

Please note that most OpenSSL vulnerabilities do not effect JRuby since its not using any of OpenSSL's C code, only Ruby parts (*.rb) are the same as in MRI's OpenSSL library.

Testing

Build Status

rake jar:all # creates pom.xml and generates jopenssl.jar under lib mvn test 

will run (junit as well as ruby) tests and a some ruby tests against the default jruby version. to pick a different JRuby version run

mvn test -Djruby.versions=9.2.8.0 

for running integration-tests the gem will be first installed and then the same tests run for each possible bouncy-castle version (see listing), run with

mvn verify -P test-9.2.9.0,test-9.1.17.0 

or pick a bouncy-castle version

mvn verify -P test-9.2.9.0 -Dbc.versions=1.60 

NOTE: you can pick any jruby version which is on central or on ci.jruby

License

(c) 2009-2024 JRuby distributed under EPL 1.0/GPL 2.0/LGPL 2.1