Questions tagged [jruby-openssl]
17 questions
3
votes
2 answers
OpenSSL::SSL::SSLError in jruby 1.6.7/1.7.0 1.9 mode
I'm running a rails 3 app with jruby 1.7.0 in 1.9 mode, and when one of my file uploading gems tries to make a https connection, it fails with the following exception:
Excon::Errors::SocketError: write would raise (OpenSSL::SSL::SSLError)
from…

Richard
- 1,146
- 1
- 13
- 24
2
votes
0 answers
How to set Mail module's SSL/TLS version manually
I am working on fixing a SSL-related bug with the Ruby Mail module in JRuby. This Github issue explains (and provides a monkey patch to) this bug.
The gist of the bug is that sometime after JRuby-1.7.19, a change was introduced that changes the…

theGreenCabbage
- 5,197
- 19
- 79
- 169
2
votes
1 answer
JRuby error loading private key with jruby-openssl in bouncycastle
I'm trying to sign emails sent by my application with an s/mime certificate. The application uses JRuby 1.7.26 and the newest version of the jruby-openssl gem. (Version 0.9.19).
When I try to load my private key like this:
key_file =…

lukas
- 21
- 4
2
votes
1 answer
How to avoid jruby's Bad File Descriptor on openssl?
I'm in a java swing application which has its WebService client implemented in jruby.
The use case is User clicks on a button, the corresponding controller opens a new Thread and this thread takes a list from a local DB and for each item of the list…

tramuntanal
- 41
- 6
2
votes
2 answers
Why does jruby-openssl gem have strange folder structure?
From my understanding, a gem's folder structer is supposed to have a folder called lib and inside that folder have a .rb file. However, when I used jruby 1.6.8 and do bundle install to install jruby-openssl, I open up…

Alexander Bird
- 38,679
- 42
- 124
- 159
2
votes
2 answers
jruby-openssl depends on non-existent bouncy-castle-java version?
I'm trying to install jruby-openssl, but it depends on a bouncy-castle-java version that doesn't appear to exist. Anybody know how to work around this?
$ gem install jruby-openssl
ERROR: While executing gem ... (Gem::DependencyError)
Unable…

Jesse Shieh
- 4,660
- 5
- 34
- 49
2
votes
0 answers
jruby-openssl vs mri openssl - Socket Closed
Issue: Net::HTTP calls failing when using jruby with a OpenSSL::SSLError Socket Closed, but working fine using MRI.
Side Note: Calls to many servers work, however this app is calling to a cisco sensor. Again, it works via MRI but not Jruby. I've…

Chapley Watson
- 188
- 12
1
vote
1 answer
Jruby-OpenSSL jruby-openssl-0.7.6.1
I have following environment:
Jruby 1.6.7
Rail 2.3.5
jruby-openssl-0.7.6.1
I use warbler to create .war file and deploy on IBM Websphere Application Server.
IBM WAS has enabled FIPS recently, which caused following error when Application starts:…
user4713245
1
vote
1 answer
openssl equivalent command in ruby
I have to convert certificate file(pem format) into pfx using private key. The command perfectly works in linux is
openssl pkcs12 -export -out certificate1.pfx -inkey myPrivateKey.key -in myCert.pem
Can anyone help me to write equivalent code in…

Ranjan Kumar
- 49
- 1
- 8
1
vote
1 answer
Rails 3.2.13 upgrade and jruby/openssl
After upgrading to Rails 3.2.13, I've started getting errors about jruby/openssl.
(LoadError) no such file to load -- jruby/openssl
I'm using JRuby 1.6.7, jruby-openssl 0.8.6, and Rails 3.2.13.
Has anyone been able to solve this?
user1454117
0
votes
2 answers
How to fix Error running '__rvm_make -j8'
I am having issue in installing ruby 2.7.1
I am getting this error:
Error running '__rvm_make -j8',
please read /Users/luqman/.rvm/log/1690926841_ruby-2.7.1/make.log
There has been an error while running make. Halting the installation
My log file…

Burhan Gardezi
- 71
- 7
0
votes
1 answer
Is there a way to get validity (notAfter) from a openssl certificate fingerprint and no certificate?
Is there a way I can determine when a particular certificate fingerprint without having the certificate itself?
something like
OpenSSL::X509::Certificate.new("-----BEGIN CERTIFICATE-----\n"+cert+"\n-----END CERTIFICATE-----\n") but from a…

skynine
- 13
- 4
0
votes
0 answers
How to cast ASN1::DEROctetStrng to ASN1::ASN1Sequence using Ruby?
I am trying to generate a self signed certificate into pem format. Below is the piece of code that is supposed to do it.
require 'openssl'
require 'r509'
rsa_key = OpenSSL::PKey::RSA.new(1024)
public_key = rsa_key.public_key
subject =…

itsh
- 1,063
- 3
- 14
- 28
0
votes
1 answer
Jruby OpenSSL RSA Base64 private key failed to instantiate object
In Ruby i have simple old source line which create RSA public or private keys:
OpenSSL::PKey::RSA.new(File.read(key_file))
My RSA public and private keys formatted like this, i use exactly same key files for MRI and Jruby:
-----BEGIN RSA PRIVATE…

Serge Janssen
- 71
- 2
- 5
0
votes
3 answers
Gem::LoadError: can't activate jruby-openssl-0.9.5-java, already activated jruby-openssl-0.9.7-java
I am getting below error while doing bundle install --path vendor/cache:
Gem::LoadError: can't activate jruby-openssl-0.9.5-java, already activated jruby-openssl-0.9.7-java
I am using jruby 1.7.16.
I tried deleting vendor, deleting Gemfile.lock…

IAmGroot
- 43
- 2
- 8