Re: How to convert from PEM to DER format?

2013-02-05 Thread Srivardhan Hebbar
Thanks Dave, EVP_DecodeBlock did the magic. -Sri On Tue, Feb 5, 2013 at 5:47 AM, Dave Thompson wrote: > >From: owner-openssl-us...@openssl.org On Behalf Of Srivardhan Hebbar > >Sent: Tuesday, 29 January, 2013 04:57 > > >I have a string which has the certificate in PEM(Base64) format. > >I wan

RE: How to convert from PEM to DER format?

2013-02-04 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Srivardhan Hebbar >Sent: Tuesday, 29 January, 2013 04:57 >I have a string which has the certificate in PEM(Base64) format. >I want to convert it to DER format(unsigned char). How can I do it? >I wrote the following code: >This code is fail

How to convert from PEM to DER format?

2013-02-02 Thread Srivardhan Hebbar
Hi, I have a string which has the certificate in PEM(Base64) format. I want to convert it to DER format(unsigned char). How can I do it? I wrote the following code: BIO *certBio = BIO_new(BIO_s_mem()); int len = BIO_puts(certBio,value.c_str()); if (len < 1) { BIO_free(certBio)