* gabriele renzi <surrender_it / rc1.vip.ukl.yahoo.com> [0315 22:15]: > il 28 Mar 2004 07:49:57 -0800, djberg96 / hotmail.com (Daniel Berger) ha > scritto:: > > >Hi all, > > > >With the inclusion of the OpenSSL package in Ruby 1.8.x, is there > >anyone out there capable and willing to create secure version of > >TCPServer and TCPClient? Perhaps additional methods for dealing with > >public/private keys, etc, would be needed. > > FWIW I believe that this would be cool :) > > >I am simply unqualified to write such a beast but would very much like > >to have it available. WEBrick has a very simple extra to run https: cleartext = HTTPServer.new( :Port => 80, :DocumentRoot => Dir::pwd + "/htdocs" ) ssl = WEBrick::HTTPServer.new( :Port => 443, :DocumentRoot => Dir::pwd + "/htdocs", :SSLEnable => true, :SSLVerifyClient => ::OpenSSL::SSL::VERIFY_NONE, :SSLCertName => [ ["C","JP"], ["O","WEBrick.Org"], ["CN", "WWW"] ] ) - why not inspect the source of that if you want to be able to run general SSL sockets? > I don't even ever felt the need for it, but It would be lovely to > support, say pop3 over ssl just doing something like > TCPSocket=SSLTCPSocket > :) You might want to use a different port first though, eh? 0rasputin@lb:rasputin$ grep -i pop3 /etc/services pop3 110/tcp # POP version 3 pop3 110/udp pop3s 995/tcp # pop3 protocol over TLS/SSL (was spop3) pop3s 995/udp # pop3 protocol over TLS/SSL (was spop3) -- Don't suspect your friends -- turn them in! -- "Brazil" Rasputin :: Jack of All Trades - Master of Nuns