Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone,

I am writing a client using perl on solaris, which will support TLS protocol in addition to TCP and UDP. Now how do i go about this?

However, I found some openssl modules on CPAN but they didn't implement the complete openssl library (cert, auth, crypt, etc).

please clarify the following.

1. Is there a perl module that implements the complete openssl or other TLS implementations?
2. Or is there anyway i can build the openssl library and use it somehow with perl?

thanks and regards,

Replies are listed 'Best First'.
Re: support for TLS
by Joost (Canon) on Jun 03, 2003 at 12:27 UTC
    Ofcourse, there is the Net::SSLeay interface to openssl. In addition to some high-level routines, it seems to have interfaces to a lot of the lower-level C library functions too. Have you checked it out?

    Update: You might want to specify what kind of client you are going to make. I'm wondering why you need ssl, unencrypted tcp and udp at the same time. :-)

    -- Joost
      Thanks for the info.

      I am writing a SIP protocol client that will connect to a SIP proxy server. Depending on the user preference, i want to be able to connect to the server in a secure(TLS) as well as non-secure(TCP/UDP) way.

      Does the Net::SSLeay interface provide support for non-http applicatons also?
        Does the Net::SSLeay interface provide support for non-http applicatons also?

        According to the docs it does:

        socket (S, &AF_INET, &SOCK_STREAM, 0) or die "socket: $!"; bind (S, $our_serv_params) or die "bind: $!"; listen (S, 5) or die "listen: $!"; $ctx = Net::SSLeay::CTX_new () or die_now("CTX_new +($ctx): $!"); Net::SSLeay::CTX_set_options($ctx, &Net::SSLeay::OP_ALL) and die_if_ssl_error("ssl ctx set options");