SSL test server

Hi

Does anyone know of a Ruby SSL server script?

Basically want to test some SSL socket stuff, but need a server to tet
it with.

Thanks,
Jim.

On 5/15/07, Jim B. [email protected] wrote:

Hi

Does anyone know of a Ruby SSL server script?

Basically want to test some SSL socket stuff, but need a server to tet
it with.

Thanks,
Jim.

With EventMachine. This code starts up a server on port 9000 that dumps
all
the incoming (unencrypted) data to console:

require ‘rubygems’
require ‘eventmachine’

Host = “0.0.0.0”
Port = 9000

module MyHandler
def receive_data data
p data
end
end

EventMachine.run {
EventMachine.start_server(Host, Port, MyHandler) {|conn|
conn.start_tls
}
}

On Tue, May 15, 2007 at 08:27:07PM +0900, Jim B. wrote:

Does anyone know of a Ruby SSL server script?

Basically want to test some SSL socket stuff, but need a server to tet
it with.

There is some code in ruby-ldapserver you could borrow (on rubyforge).

If it doesn’t have to be ruby, then maybe openssl s_server will do: e.g.

openssl s_server -cert server.example.com-cert.pem
-key server.example.com-key.pem
-CAfile sub-cacert.pem
-www

Thanks all.

That lot should keep me busy.

Thanks for taking the time to help.
Jim.

On May 15, 8:27 pm, Jim B. [email protected] wrote:

Does anyone know of a Ruby SSL server script?

http://zhware.net/code/ruby/ssldoc.rb.txt - https:// webrick

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