Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jun 2003 13:30:14 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Bingrui Foo <foob@purdue.edu>
Cc:        questions@freebsd.org
Subject:   Re: Question about insecure server
Message-ID:  <3EE22126.50703@mac.com>
In-Reply-To: <Pine.SOL.4.51.0306070449340.19465@herald.cc.purdue.edu>
References:  <Pine.SOL.4.51.0306070449340.19465@herald.cc.purdue.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Bingrui Foo wrote:
[ ... ]
> I'm wondering is there a way to use ssh instead of telnet to connect to my
> chat server to make the connection secure?
> 
> Do I have to modify the C socket code to somehow allow people to ssh into
> it? Or is there another way. I have no idea how to make it secure.

You can change your C code to use the OpenSSL library; if you do that, you have 
the option of then negotiating STARTTLS and thus support both encrypted and 
non-encrypted connections on the same listening socket.

However, it might be much easier to install /usr/ports/security/stunnel, and use 
that to "wrap" your program.

-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EE22126.50703>