Please take refrence file s_client.c and s_server.c from openssl project in
folder apps.

 

 

Thank you.

Regards,

--Ajeet  Kumar  Singh

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of vinni rathore
Sent: Monday, November 17, 2008 2:10 PM
To: openssl-users@openssl.org
Subject: Re: help

 

As u said that if u use already provided certificates then it work fine
right... it means that your certificates are not proper at both end.. means
may be there is any mismatching of the certificates.. may be u r missing
something.. it just my assumptions.. 

Also u sent me the errors that shows there is some reading problem could u
please send me the flow of API's u r using for the ur client and server...

On Mon, Nov 17, 2008 at 4:34 PM, naveen.bn <[EMAIL PROTECTED]>
wrote:

vinni rathore wrote: 

What is ur failure error messages can u please send them...

On Fri, Nov 14, 2008 at 10:21 PM, Michael Simms <[EMAIL PROTECTED]>
wrote:

> I am a new to SSL.  I have installed openssl and using the SSL APIs , I
have
> written a small client -  server
> program in C, but SSL_connect fails from client end and SSL_accept fails
from
> server. I have generated the root CA certificate, which I have used to
sign
> both the client and server certificate.

Are you aware you need to call SSL_connect and SSL_accept a number of
times, checking the error return to see if it WANTS_READ or
WANTS_WRITE, and reading/writing as appropriate? It can take a number
of calls to to the connect/accept before it finishes the job.

Thanks
--
Michael Simms
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]




-- 
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh

Hi ,
Thanks for the reply.
After the SSL_connect(ssl) , I called SSL_get_error(ssl,ret) and the ret
value is 0 always .
At the server end SSL_accept returns 0 with  SSL_ERROR_NONE.
Is there any other way of debugging the client code to find out wher it is
failing. 
If i use the same certificates with the command line server and client
provided with the openssl tool it works.

Thanks and regards
naveen






-- 
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh

<<image001.jpg>>

Reply via email to