lgromanowski / acme-plugin

:lock_with_ink_pen: ACME protocol plugin for Ruby on Rails applications
https://rubygems.org/gems/acme_plugin
MIT License
187 stars 30 forks source link

uninitialized constant OpenSSL::PKey::EC #29

Open p0indexter opened 8 years ago

p0indexter commented 8 years ago

On Max OSX using jruby 9.0.5.0 I get the error "uninitialized constant OpenSSL::PKey::EC" when I run $ rake letsencrypt_plugin If anyone wants to duplicate issue follow the installation instructions except in the gemfile use: gem 'letsencrypt_plugin', :git => "https://github.com/lgromanowski/letsencrypt-plugin.git" Because jRuby is comparable to ruby 2.2.0

lgromanowski commented 8 years ago

Hi, could you please post ruby trace?

p0indexter commented 8 years ago

Trace:

200-168-100-8:employment calebmitchellsmith$ rake letsencrypt_plugin --trace NOTE: ActiveRecord 4.2 with adapter: mssql is not (yet) fully supported by AR-JDBC, please consider helping us out. rake aborted! NameError: uninitialized constant OpenSSL::PKey::EC /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/json-jwt-1.5.2/lib/json/jwk/jwkizable.rb:69:in' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/json-jwt-1.5.2/lib/json/jwt.rb:1:in <top>' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/json-jwt-1.5.2/lib/json/jwt.rb:102:in' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme-client.rb:1:in <top>' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme-client.rb:5:in' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme/client.rb:1:in require' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme/client.rb:1:inblock in (root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme/client.rb:1:in each' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/acme-client-0.3.0/lib/acme/client.rb:1:inblock in (root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/bundler/gems/letsencrypt-plugin-e75ceed41c55/lib/letsencrypt_plugin.rb:1:in each' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/bundler/gems/letsencrypt-plugin-e75ceed41c55/lib/letsencrypt_plugin.rb:1:in(root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/bundler/gems/letsencrypt-plugin-e75ceed41c55/lib/letsencrypt_plugin.rb:7:in (root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler/runtime.rb:1:in' /Users/calebmitchellsmith/.rvm/rubies/jruby-9.0.5.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54:in require' /Users/calebmitchellsmith/.rvm/rubies/jruby-9.0.5.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54:inrequire' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler/runtime.rb:76:in <top>' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:inload' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler/runtime.rb:72:in require' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler/runtime.rb:61:inrequire' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@emp2/gems/bundler-1.9.9/lib/bundler.rb:134:in block in require' /Users/calebmitchellsmith/Dropbox/Programing/Ruby/EMI/FTN/employment/config/application.rb:25:in(root)' /Users/calebmitchellsmith/Dropbox/Programing/Ruby/EMI/FTN/employment/Rakefile:1:in (root)' /Users/calebmitchellsmith/Dropbox/Programing/Ruby/EMI/FTN/employment/Rakefile:4:inblock in (root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@global/gems/rake-10.5.0/lib/rake/rake_module.rb:1:in (root)' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@global/gems/rake-10.5.0/lib/rake/rake_module.rb:28:inload_rakefile' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@global/gems/rake-10.5.0/lib/rake/application.rb:690:in <top>' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@global/bin/rake:23:inload' /Users/calebmitchellsmith/.rvm/gems/jruby-9.0.5.0@global/bin/rake:23:in <top>'

lgromanowski commented 8 years ago

Hi, it seems to be related to: https://github.com/jruby/jruby/issues/1261 - could you please check on most recent one version of jruby?

p0indexter commented 8 years ago

This trace is from the most recent version - 9.0.5.0

p0indexter commented 8 years ago

Opps, it looks like this is indeed a jRuby issue, down the thread they state the error resurfaced in jRuby 9K. Im going to try 1.7.13 and work my way up from there, to find which version of jRuby reintroduced the bug.