Hi
This is one of the rude method i followed, write a script which behaves has a server with debug messages enable and try to connect to that server. You might get some idea to work on it further .
for example( server script ) :
openssl s_server -accept 4444 -cert server_signed.pem -key server.key -certform PEM -verify 1 -CApath . -CAfile cacert.pem -state -debug -msg -nbio -ssl3

Thanks and regards
naveen

Sushil Singh wrote:
Hi

As michael said we need to have multiple SSL_connect before it succeeds.
But now my problem is that the handshake fails with cause as
SSL_connect failure to due to bad MAC. the server sends this alert to
client and handshake fails.

Could you pls advise how to debug it further.

Best regards
Sushil
On 11/14/08, naveen.bn <[EMAIL PROTECTED]> wrote:
Hi All,
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.
I have attached the following files sclient.c, sserver.c ,
client_signed.pem , server_signed.pem and cacert.pem .
Please find the attachment.

Kindly guide me to get the SSL negotations done.
Thank you
naveen


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


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

Reply via email to