Re: Getting the peer certificate in a memory buffer

2008-10-20 Thread Douglas E. Engert
Maybe. The last time I tried this was in 2001 with the Globus Toolkit 4.0.16 $Source: /home/globdev/CVS/globus-1998_04_16/Globus/Security/gssapi_ssleay/sslutils.c,v $ $Date: 2001/05/05 22:41:27 $ $Revision: 1.113 $ $Author: dengert $ has proxy_marshal_*() routines to write

Re: Getting the peer certificate in a memory buffer

2008-10-20 Thread Aravinda babu
Hi Douglas, Is this right way to get the peer certificate in a data buffer ? STACK_OF(X509) *sk; int ii = 0, noOfCerts = 0 , res = -1; X509 *certs[15]; unsigned char *intFmtOfCerts[15]; unsigned int len[15]; sk= SSL_get_peer_cert_chain(connssl->handle); noOfCerts = sk_X

Re: Getting the peer certificate in a memory buffer

2008-10-17 Thread Douglas E. Engert
Aravinda babu wrote: 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 *) Then what are you going to do with it? Write to a file or

Getting the peer certificate in a memory buffer

2008-10-17 Thread Aravinda babu
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.