Openssl is making me crazy

As said in comment #14 here
http://support.github.com/discussions/repos/4714-jquery-github-ssl
I’ve added OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE in
application.rb.
I’m using jruby-1.6.RC2 and I have jruby-openssl installed.
I run jruby -S rails g jquery:install and …
org/jruby/RubyModule.java:2528:in `const_missing’: uninitialized
constant OpenSSL (NameError)
This openssl is making me crazy I’m loosing too much time for this.

On 5 March 2011 12:22, Mauro [email protected] wrote:

As said in comment #14 here
http://support.github.com/discussions/repos/4714-jquery-github-ssl
I’ve added OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE in
application.rb.
I’m using jruby-1.6.RC2 and I have jruby-openssl installed.
I run jruby -S rails g jquery:install and …
org/jruby/RubyModule.java:2528:in `const_missing’: uninitialized
constant OpenSSL (NameError)
This openssl is making me crazy I’m loosing too much time for this.

Can you give some help please?

Hello Mauro,

Seems like you’re not stating that you need ‘openssl’ somewhere. In a
simple
ruby program you would do:

require ‘openssl’

in this case I’m not sure wether you’re using bundler or not, there must
be
a way to specify that you need OpenSSL defined somehow.

Also it seems that you are redefining a constant there, which might
not be
the best way of accepting all ssl certs (though I’m not 100% sure of
this).

Cheers!

ps: Sorry I can’t help you much, but hopefuly this will point you in the
right direction until someone smarter answers you :slight_smile:

Have you tried manually installing jruby-openssl (gem install
jruby-openssl)?

On Sat, 2011-03-05 at 18:09 +0000, Mauro wrote:

Can you give some help please?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Nick G.
Developer @ Media Service Provider
+44 207 729 4797

On 7 March 2011 16:27, Mauro [email protected] wrote:

On 7 March 2011 10:26, Nick G. [email protected] wrote:

Have you tried manually installing jruby-openssl (gem install
jruby-openssl)?

Yes I’ve tried but same error.
I think it’s a problem of the last release of jruby-openssl or the
last release of jruby.

No solutions?

On 5 March 2011 21:59, pablo fernandez [email protected]
wrote:

right direction until someone smarter answers you :slight_smile:
I’m using rails, I need to do rails g jquery:install but there is an
error on github certificate.
This error is know and here
http://support.github.com/discussions/repos/4714-jquery-github-ssl in
comment #14 is said to add
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE in
config/application.rb.
I’ve added but I’ve the error:
org/jruby/RubyModule.java:2528:in `const_missing’: uninitialized
constant OpenSSL (NameError).
I am jruby-openssl installed via bundler.
Perhaps is a bug of the latest release of jruby-openssl or jruby-1.6.x?
I remember time ago that using OpenSSL::SSL::VERIFY_PEER =
OpenSSL::SSL::VERIFY_NONE in config/application.rb works and I can
run rails g jquey:install with no problems.

It is a problem with the verification of github ssl certificate not
being considered valid, probably because you dont have the needed root
CA certificate localy installed.

As a workaround you can manually install jquery

Cumprimentos,
Luis Landeiro R.

2011/3/12 Luís Landeiro R. [email protected]:

It is a problem with the verification of github ssl certificate not being
considered valid, probably because you dont have the needed root CA certificate
localy installed.

As a workaround you can manually install jquery

I’ve put OpenSSL::SSL::VERIFY_NONE in config/application.rb works and
I can in the file environment.rb rather than application.rb and it
works now.

On 7 March 2011 10:26, Nick G. removed_email_a[email protected] wrote:

Have you tried manually installing jruby-openssl (gem install
jruby-openssl)?

Yes I’ve tried but same error.
I think it’s a problem of the last release of jruby-openssl or the
last release of jruby.

2011/3/13 Luís Landeiro R. [email protected]:

That’s ok for development, or for just installing jquery,
but you shouldn’t use that config in production, it will make all your https
connections vunerable.

I use it only to install jquery.

That’s ok for development, or for just installing jquery,
but you shouldn’t use that config in production, it will make all your
https connections vunerable.

You can read more about it here
http://jamesgolick.com/2011/2/15/verify-none..html

and

http://www.rubyinside.com/how-to-cure-nethttps-risky-default-https-behavior-4010.html

Cheers,
Lus

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs