Did you do an
SSL_CTX_set_verify( ctx, SSL_VERIFY_PEER, verify_callback );
on your server side? If not then I don't think that the server side
requested a certificate from the client. In which case
SSL_get_peer_certificate(); would be returning
a null certificate.
Bill
-----Original Message-----
From: Jorgen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 8:28 AM
To: [EMAIL PROTECTED]
Subject: Problems with obtaining the client certificate.
Hi,
I'm having some problem to obtain the client certificate/public key in my
server application.
In my client app I'm using func SSL_CTX_use_certificate_file(); to add my
cert to the SSL_CTX structure.
I can receive the servers certificate ok.
On the server side I'm using the SSL_get_peer_certificate(); .
But it always return NULL.
I don't know if I'm missing something.
Thanks
/Jorgen
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]