http://qs321.pair.com?node_id=118747

Marcello has asked for the wisdom of the Perl Monks concerning the following question: (network programming)

Hello, I've recently seen some documentation which claims to be able to switch to SSL encryption when a TCP connection is open. I have written a TCP server which accepts several commands. To offer more security, I also would like to use SSL, although not necessarily during an active connection. I use socket(), accept() etc. within my server. Is it possible to 'SSL-enable' my server and what packages do I need? TIA Regards, Marcel

Originally posted as a Categorized Question.

Replies are listed 'Best First'.
Re: SSL on a TCP connection
by pjf (Curate) on Oct 14, 2001 at 17:27 UTC
    Howdy Marcello,

    CPAN is your friend. Take a look at IO::Socket::SSL, Net::Daemon::SSL, or the many other SSL modules that are available. There's a good chance that one of them will suit your needs.

    Cheers,
    Paul

Re: SSL on a TCP connection
by echo (Pilgrim) on Oct 14, 2001 at 16:45 UTC
    Others will undoubtedly offer a Perl solution, meanwhile an easy way which works well is to use an SSL wrapper such as stunnel or sslwrap.