jruby-openssl
jruby-openssl copied to clipboard
JRuby's OpenSSL gem
While investigating a failure in https://github.com/rspec/rspec-rails/pull/2580 I ran into a different issue of my own, where it appears jruby-openssl is double-loading. It resolved once I removed my installed jruby-openssl 0.12.2...
``` jruby-9.0.5.0 Darwin 14.5.0 Darwin Kernel Version 14.5.0: root:xnu-2782.50.3~1/RELEASE_X86_64 x86_64 ``` [`npn_protocols`](http://ruby-doc.org/stdlib-2.2.0/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#npn_protocols-attribute-method) allows to set the protocols to be advertised as the list of supported protocols for Next Protocol Negotiation....
I'm getting some warnings when using jruby that seem to come from jruby-openssl. I researched the errors and they seem to have been fixed recently in jruby-openssl's master, by [the...
We implemented client certificate chain support in MongoDB Ruby driver by using the following code: https://github.com/mongodb/mongo-ruby-driver/pull/1366/files#diff-ed625ecdabf4aeff5d1a5fc04b958a3a Briefly speaking, this specifies the leaf certificate as SSLContext#cert and adds all intermediate certificates...
Is there a way to intercept reads and writes SSLSocket does into underlying TCPSocket? I tried the following way, but overridden methods were not invoked: ``` class TCPSocket def write(*args)...
https://ruby-doc.org/stdlib-2.5.0/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html specifies for renegotiation_cb: > A callback invoked whenever a new handshake is initiated. May be used to disable renegotiation entirely. This docstring appears to be either misleading or incorrect,...
I [misfiled this in jruby](https://github.com/jruby/jruby/issues/5772) so I'm refiling it here as a more appropriate place. ### Environment Provide at least: * jruby 9.2.6.0 (2.5.3) 2019-02-11 15ba00b OpenJDK 64-Bit Server VM...
`Cipher#iv_len` is not returning the proper value for an ECB mode AES cipher. MRI: ``` 2.5.1 :002 > OpenSSL::Cipher.new("AES-128-ECB").iv_len => 0 ``` JRuby: ``` jruby-9.1.15.0 :002 > OpenSSL::Cipher.new("AES-128-ECB").iv_len => 16...
This constant is used to disable renegotiation. MRI: ``` serene% irb -ropenssl irb(main):001:0> OpenSSL::SSL::OP_NO_RENEGOTIATION => 1073741824 ``` JRuby: ``` irb(main):001:0> OpenSSL::SSL::OP_NO_RENEGOTIATION Traceback (most recent call last): 7: from /home/w/.rbenv/versions/jruby-9.2.11/bin/irb:13:in `'...
I am working on OCSP stapling support in MongoDB Ruby driver. Per https://github.com/ruby/openssl/issues/295 this functionality is currently not provided by MRI's openssl extension. I have an [open PR](https://github.com/ruby/openssl/pull/401) for MRI...