Hi there,

I'm new on this list. I'm a computer science student and I'm trying to
write an application that models the client-server schema. After
writing a server in C using select() (a multiplexed server) and a java
client that interacts with more of this java clients succesfully, I
decided to secure the conection. Problem was that with 'netcat' I was
able to read all the data passed by from the server to the others
clients.

Before trying to use openssl on the server, the results were ok and
the whole thing worked like a charm. Now, after reading "the
definitive guide to Linux Network Programming" and a couple of
tutorial, I decided to secure the conection using openssl.

I have the examples of the book I've  mentioned and with clients wrote
in C the thing goes ok. But, when I try to use a java client I can't
establish a connection. I always fail on SSL_accept()  (using BIO or
not it's the same result) with error code from ERR_get_errors() number
5, with I assume that is SSL_ERROR_SYSCALL as "openssl/ssl.h" file
said so. The 'ret' parameter es equals to 0.

Can anyone guide/tell me if what I want to do is really possible? I
think so, but I'm not a Java master so I think the problem is out
there, in the java code. I try finding an openSSL for java, but all I
found was outdated packages, as javassl, and itissl.

Also, java does not support SSLv2 because I got that exception. So I
set SSLv3_server_method() as method.

I followed a couple of examples out there on the web on how to connect
to an SSL server and all say almost the same as:

SSLSocketFactory s = (SSLSocketFactory) SSLSocketFactory.getDefault();
Socket ns = s.createSocket(host, port);

I hope someone can at least help a little,
Thanks in advance for your time
-- 
Sebastián Treu
http://labombiya.com.ar
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to