Re: [openssl-dev] Write PEM to char*

2015-03-15 Thread Yair Elharrar
, March 15, 2015 6:46 To: openssl-dev@openssl.org Subject: [openssl-dev] Write PEM to char* Hi! I was wondering if there are ways by which you can get a PEM encoded certificate stored into a char* from a X509 structure. I got a lot of ways to write it to FILE, but nothing appears to return a char

Re: [openssl-dev] Write PEM to char*

2015-03-14 Thread Viktor Dukhovni
On Sun, Mar 15, 2015 at 10:16:25AM +0530, dE wrote: I was wondering if there are ways by which you can get a PEM encoded certificate stored into a char* from a X509 structure. I got a lot of ways to write it to FILE, but nothing appears to return a char*. Use a memory BIO and

[openssl-dev] Write PEM to char*

2015-03-14 Thread dE
Hi! I was wondering if there are ways by which you can get a PEM encoded certificate stored into a char* from a X509 structure. I got a lot of ways to write it to FILE, but nothing appears to return a char*. Thanks for any pointers. ___