DESCRIPTION
       SSL_get_peer_certificate() returns a pointer to the X509 certificate
       the peer presented. If the peer did not present a certificate, NULL is
       returned.

Please see the manual page for SSL_get_peer_certificate for more
information (including information on how to tell the underlying SSL
structure to request peer authentication.

-Kyle H

On Mon, Jul 28, 2008 at 4:37 PM, M <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having a problem establishing a connection with openssl libs. My client
> code is failing because SSL_get_peer_certificate() returns NULL. On the
> server code SSL_get_error() returns 1 and the error string i get is
> "error:00000000:lib(0):func(0):reason(0)" which is very unclear to me. Why
> would SSL_get_peer_certificate() be failing?
>
> Thank you,
> John
>
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to