Hi all,

I am new to OpenSSL.I want to get the peer certificate in a memory buffer.

If i use SSL_get_peer_certificate i can get in X509 strcture.
But i want the peer certificate as a data buffer.(unsigned char *)

Is there any API for this ??

Thanks in advance,
Aravind.