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.

···

--
Posted via http://www.ruby-forum.com/.

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 5/15/07, Jim Bob <james@dimsum.tv> 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.

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

···

On Tue, May 15, 2007 at 08:27:07PM +0900, Jim Bob 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.

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

···

On May 15, 8:27 pm, Jim Bob <j...@dimsum.tv> wrote:

Does anyone know of a Ruby SSL server script?

Thanks all.

That lot should keep me busy.

Thanks for taking the time to help.
Jim.

···

--
Posted via http://www.ruby-forum.com/.