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

**Environment Information** Provide at least: * JRuby version (`jruby -v`) and command line (flags, JRUBY_OPTS, etc): `9.3.0.0` * Operating system and platform (e.g. `uname -a`): `Darwin Andys-MacBook-Pro.local 20.3.0 Darwin Kernel...

`OpenSSL::ASN1::ASN1Data` encoding and decoding hasn't worked well for some time: * it was decoding the value always as a Sequence (when values can be strings as well); * after decoding,...

work-wanted

Starting with jruby-openssl 0.14.4 sshkit dies with: ``` SSHKit::Runner::ExecuteError: Exception while executing on host staging-app: undefined method `q=' for # Did you mean? q execute at /Users/user/.rbenv/versions/jruby-9.2.7.0/lib/ruby/gems/shared/gems/sshkit-1.22.2/lib/sshkit/runners/parallel.rb:15 ``` 0.14.3 works...

```ruby #!/usr/bin/env ruby require 'rubygems' require 'openssl' puts OpenSSL::OPENSSL_VERSION b64 = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEbfwR+RJudXscgRBRpKX1XFDy3PyudDxz/SfnRi1fT8ekpfBd2O1uoz7jr3Z8nKzxA69EUQ+eFCFI3zeubPWU7w==" key = OpenSSL::PKey.read(b64.unpack1("m")) puts key.to_text pp OpenSSL::Digest::SHA256.hexdigest(key.public_to_der) ``` on mri: ``` OpenSSL 3.3.0 9 Apr 2024 Public-Key: (256...

``` #!/usr/bin/env ruby require 'rubygems' require 'openssl' b64 = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2G2Y+2tabdTV5BcGiBIx0a9fAFwrkBbmLSGtks4L3qX6yYY0zufBnhC8Ur/iy55GhWP/9A/bY2LhC30M9+RYtw==" key = OpenSSL::PKey.read(b64.unpack1("m")) pp OpenSSL::Digest::SHA256.hexdigest(key.public_to_der) ``` passes on MRI, fails on jruby (JRuby-OpenSSL 0.14.5): ``` NoMethodError: undefined method `public_to_der' for...

From http://jira.codehaus.org/browse/JRUBY-7092 Following script produces different results on JRuby versus MRI: ``` ruby require 'openssl' puts "RUBY_ENGINE #{RUBY_ENGINE}" puts "RUBY_VERSION #{RUBY_VERSION}" cert_content =

compatibility
asn.1

It does seems that the encoding of ASN1 is wrong during to_der. Simple test as following `require 'openssl'` `i = OpenSSL::ASN1::Integer.new(1,1,:explicit). # result is same if :implicit is used` `s...

asn.1

I created the following key.pem with the password demo using the following command: ``` openssl req -new > cert.csr openssl rsa -in privkey.pem -out key.pem ``` Then I added the...

asn.1

I have an LDAP stub server implemented using [ruby-ldapserver](https://github.com/inscitiv/ruby-ldapserver) that I use in performance testing. It works with MRI Ruby but it fails under JRuby (I need to run it...

asn.1

## Steps To Reproduce ### CRuby ```ruby require 'openssl' ec = OpenSSL::PKey::EC.generate('prime256v1') ec.generate_key pem = ec.to_pem # => "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEIFGFA23QpFp3ZgFniwlICLAjIc3Zxrt6Dw5ElfETPkoxoAoGCCqGSM49\nAwEHoUQDQgAEfAWhRpiAKNuIlXG54M/vSWN1kam9/1SKp8yeoHBN0YhpGDrh+JC0\ngwPqy/cOYhzzKUleb4+bjvImBkTB/1jvlQ==\n-----END EC PRIVATE KEY-----\n" ``` ### JRuby ```ruby require...