ssl - sslv3 alert illegal parameter using Net::HTTP in Ruby on Linux -
i attempting use remote system user authentication. chunk of code gets response when run on macosx, fails on machine:
def create uri = uri.parse('https://ourclient.example.com/') http = net::http.new(uri.host, uri.port) http.use_ssl = true http.verify_mode = openssl::ssl::verify_none request = net::http::post.new('/login.jsp') request.set_form_data({'login_name' => params[:login], 'password' => params[:password]}) response = http.request(request) puts "response body: #{response.body.inspect}" end
turning verify off gets rid of warning on macs. on machine, http.request raises exception:
openssl::ssl::sslerror (ssl_connect returned=1 errno=0 state=sslv2/v3 read server hello a: sslv3 alert illegal parameter): app/controllers/sessions_controller.rb:16:in `create'
i same behavior using irb without rails. did clean install of fedora 14 yesterday, installed required development tools , libraries. i'm using ruby 1.9.2-p180, , rails 3.0.4. thought might have had libraries misconfigured (i had fedora 12 had been upgraded few times), new install.
the remote system microsoft's iis, i'm not of that. perhaps can use older ssl protocol, google-fu can't find incantation.
i appreciate tips on resolving issue. thanks,
chris
how created ssl cert on server? self-signed or ca-signed? error receive if remove verify_none?
Comments
Post a Comment