Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL::X509::Store behaves differently on MRI #68

Closed
mkristian opened this issue Sep 10, 2015 · 0 comments
Closed

OpenSSL::X509::Store behaves differently on MRI #68

mkristian opened this issue Sep 10, 2015 · 0 comments

Comments

@mkristian
Copy link
Member

setting custom SSL_CERT_FILE

$ SSL_CERT_FILE=nothing ruby -v -r openssl -e 'OpenSSL::X509::Store.new.set_default_paths'
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]

versus

$ SSL_CERT_FILE=nothing bin/ruby -v -r openssl -e 'OpenSSL::X509::Store.new.set_default_paths'
jruby 9.0.2.0-SNAPSHOT (2.2.2) 2015-09-10 9ceb2fe Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 +jit [darwin-x86_64]
OpenSSL::X509::StoreError: setting default path failed: NotFound
  set_default_paths at org/jruby/ext/openssl/X509Store.java:185
              <top> at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/jopenssl/load.rb:25
            require at org/jruby/RubyKernel.java:939
             (root) at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
              <top> at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
            require at org/jruby/RubyKernel.java:939
             (root) at /Users/cmeier/projects/active/jruby/lib/ruby/stdlib/openssl.rb:1

the OpenSSL::X509::DEFAULT_CERT_FILE from the above MRI-2.2.3 is /usr/local/etc/openssl/cert.pem and does NOT exists. using this via SSL_CERT_FILE just works with MRI but fails with jruby-openssl-0.9.11.

that is add on to: #49

mkristian added a commit that referenced this issue Sep 11, 2015
mkristian added a commit that referenced this issue Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant