jruby-openssl icon indicating copy to clipboard operation
jruby-openssl copied to clipboard

JRuby's OpenSSL gem

Results 82 jruby-openssl issues
Sort by recently updated
recently updated
newest added

The `OpenSSL::PKey::RSA.new` function fails to load encrypted RSA keys when not created with the `-traditional` option. I have tested with jruby 9.4.12.0 and jopenssl: 0.15.3 Steps to reproduce: ``` $...

Running the following: ``` #!/usr/bin/env ruby require "openssl" cert = OpenSSL::X509::Certificate.new( exit status 0 in 60ms-------------------------------------------------------------------- ********************************************************************************************************************************************************************************** ``` ``` ********************************************************************************************************************************************************************************** ------------------------------------------------------------jruby-9.4.12.0 (jruby 9.4.12.0) -> exit status 0 in 1.716s------------------------------------------------------------ "URI:https://github.com/lostisland/faraday/.github/workflows/publish.yml@refs/tags/v2.12.2"...

I’m trying to generate an EC key and convert it to PEM format, but the output is not what I expected. **How to reproduce** Run this code: ``` require 'openssl'...

`verify_certificate_identity` relies on a naive string-based approach to extract `DNS:` (and `IP:`) entries from the subjectAltName extension. However, the SAN is truly an ASN.1 structure, and when the library stringifies...

Not sure if this is the right approach, but I'll put it up for discussion anyway. :) Fixes #324

Running the following: ```ruby #!/usr/bin/env ruby require "rubygems" require 'openssl' pem =

In trying to run the [web-push](https://github.com/pushpad/web-push) gem on JRuby 9.4.9.0 with jruby-openssl version 0.15.1, I get the following error: ```ruby /Users/mohamed/.rbenv/versions/jruby-9.4.9.0/lib/ruby/gems/shared/gems/web-push-3.0.1/lib/web_push/encryption.rb:29:in `encrypt': undefined method `hkdf' for OpenSSL::KDF:Module (NoMethodError) from /Users/mohamed/.rbenv/versions/jruby-9.4.9.0/lib/ruby/gems/shared/gems/web-push-3.0.1/lib/web_push/request.rb:131:in...

seems that the [`fd` ends up `null`](https://github.com/jruby/jruby/blob/9.4.8.0/core/src/main/java/org/jruby/util/io/OpenFile.java#L2523) on occasions: ``` Exception in thread "Ruby-0-Thread-39: /home/runner/work/jruby-openssl/jruby-openssl/src/test/ruby/ssl/test_helper.rb:100" java.lang.AssertionError at org.jruby.util.io.OpenFile.channel(OpenFile.java:2523) at org.jruby.RubyIO.getChannel(RubyIO.java:432) at org.jruby.RubyThread.select(RubyThread.java:2105) at org.jruby.ext.socket.RubyTCPServer.accept(RubyTCPServer.java:153) at org.jruby.ext.socket.RubyTCPServer$INVOKER$i$0$0$accept.call(RubyTCPServer$INVOKER$i$0$0$accept.gen) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:193) at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:346)...

## Basic Info * Faraday Version: `2.11.0` * Ruby Version: `jruby 9.4.8.0 (3.1.4) 2024-07-02 4d41e55a67 OpenJDK 64-Bit Server VM 21.0.4+7-LTS on 21.0.4+7-LTS +jit [x86_64-linux]` * JRuby OpenSSL Version: `0.15.0` ##...

add ruby-openssl objectid tests + fixing the discrepancies.