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
>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
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)