Open charl opened 13 years ago
I have just tried it with jruby-openssl-0.7.3 and the results are the same.
I see the issue I am experiencing is related to the fact that the web server on the end of the request only support SSLv3 connections.
The workaround is to run your script with:
ruby -J-Dhttps.protocols=SSLv3 SCRIPT_NAME
Hmm. Interesting. Java's JSSE cannnot connect to https://msp.ibm.com...
net/https does not have ssl version parameter ATM. The following might work. (ugly monkey patching only works for 1.8)
http.instance_eval("@ssl_context").ssl_version = "SSLv3"
With httpclient gem, this script works for me.
c = HTTPClient.new c.ssl_config.options = OpenSSL::SSL::OP_NO_TLSv1 c.get("https://msp.ibm.com")
It seems that it's from Java's JSSE restriction, your solution is the best I think...
Additional information:
It seems to be related to TLS extension...
When trying to retrieve a page from a SSL resource, the exception above is thrown, even though OpenSSL::SSL::VERIFY_NONE is set.
Environment: OS X 10.6.6