Re: Reading certificate from structure using d2i_X509??

2003-03-12 Thread Valentin Zahariev
On Tue, Mar 11, 2003 at 01:54:55PM -0800, rajagopalan ramanujam wrote: hi, I am having a problem when reading a certificate and private key from a memory buffer instead of a file. i am using d2i_X509(NULL,cert,strlen(cert)) to read the certificate string which was defined in one of .pem

Reading certificate from structure using d2i_X509??

2003-03-11 Thread rajagopalan ramanujam
hi, I am having a problem when reading a certificate and private key from a memory buffer instead of a file. i am using d2i_X509(NULL,cert,strlen(cert)) to read the certificate string which was defined in one of .pem file. Should i use SSL_CTX_use_certificate_ASN1 instead??? Please help me.

Re: Reading certificate from structure using d2i_X509??

2003-03-11 Thread Dr. Stephen Henson
On Tue, Mar 11, 2003, rajagopalan ramanujam wrote: hi, I am having a problem when reading a certificate and private key from a memory buffer instead of a file. i am using d2i_X509(NULL,cert,strlen(cert)) to read the certificate string which was defined in one of .pem file. Should i

Re: Reading certificate from structure using d2i_X509??

2003-03-11 Thread rajagopalan ramanujam
Thanks steve!! Can i use these to function calls to convert? PEM_read_bio_X509 PEM_read_bio_PrivateKey --- Dr. Stephen Henson [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2003, rajagopalan ramanujam wrote: hi, I am having a problem when reading a certificate and private key

Re: Reading certificate from structure using d2i_X509??

2003-03-11 Thread Dr. Stephen Henson
On Tue, Mar 11, 2003, rajagopalan ramanujam wrote: Thanks steve!! Can i use these to function calls to convert? PEM_read_bio_X509 PEM_read_bio_PrivateKey If you include all the newlines in the base64 encoded structure and create a memory BIO from the string using

Re: Reading certificate from structure using d2i_X509??

2003-03-11 Thread Lutz Jaenicke
On Tue, Mar 11, 2003 at 01:54:55PM -0800, rajagopalan ramanujam wrote: hi, I am having a problem when reading a certificate and private key from a memory buffer instead of a file. i am using d2i_X509(NULL,cert,strlen(cert)) to read the certificate string which was defined in one of .pem