[WANTED] Secure TCPServer, TCPClient

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.

I am simply unqualified to write such a beast but would very much like
to have it available.

Regards,

Dan

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 :slight_smile:

I am simply unqualified to write such a beast but would very much like
to have it available.

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
:slight_smile:

···

il 28 Mar 2004 07:49:57 -0800, djberg96@hotmail.com (Daniel Berger) ha scritto::

djberg96@hotmail.com (Daniel Berger) writes:

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.

I am simply unqualified to write such a beast but would very much like
to have it available.
I assume quite some peope are capable of it. Question is are enough
willing to spend money on it?

Regards
Friedrich

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 :slight_smile:

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
:slight_smile:

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

Dick Davies wrote:

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 :slight_smile:

I am simply unqualified to write such a beast but would very much like
to have it available.

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
:slight_smile:

Scanning the drb/ssl.rb file, I came across this:
def connect(tcp)
ssl = ::OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx)
ssl.sync = true
ssl.connect
ssl
end

Any help?

···