|
I am using the following version of perl modules.
Net SSLeay version is 1.08
IO::Socket::SSL version is 0.96
I have the following requirement i need to extend SSL capability to my application. I have designed
+ it as following.
On the server side.
I have a tcp server and when a request for any new connection occurs I accept the connection an
+d spawn thread ( using pthread api) and in the thread i do the ssl related initialization and bloc
+k on SSL_accept
On the client side
I have created a tcp socket using Net::Telnet api and then using the
$sock = IO::Socket::SSL->start_SSL(
$sock,
'SSL_passwd_cb' => sub{return "abc"},
'SSL_version' => 'SSLv2',
#'SSL_startHandshake' => 0
) || die "Encountered an SSL handshake problem:".IO::Socket::SSL::errstr();
$sock->connect_SSL;
I have follosing questions
1. Is my desing correct?
2. when ever i try to connect i get the following error
"SSL connect attempt failederror:00000000:lib(0):func(0):reason(0) at ./ssl_client2.pl"
+ , is this error has any thing to do with the version of the modules
+i am using.
3. Can you please tell How to desing a skeleton for small echo client and server using the perl SS
+L module.
Any doc which explain this flow is greatly appreciated.
Thanks
Amar
|