Re: Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-15 Thread Kaushalye Kapuruge
o: /openssl-users@openssl.org/ Subject: /Re: Problem with EVP_Decode and line breaks in a X509 certificate/ Date: /Thu, 15 Mar 2007 11:51:12 +0530/ MIME-Version: /1.0/ X-Sender: /Kaushalye Kapuruge <[EMAIL PROTECTED]>/ Received: /from mmx1.engelschall.com ([195

Re: Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-15 Thread Usman Riaz
Strange, you posted a question instead of just copying, pasting "BEGIN...END" doing a recompile & rerun :D. Hope this helps, Regards, Usman. From:  Kaushalye Kapuruge <[EMAIL PROTECTED]>Reply-To:  openssl-users@openssl.orgTo:  openssl-users@openssl.orgSubject:  Re: Problem with EVP_Decode and

Re: Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-14 Thread Kaushalye Kapuruge
Hi Patrick, Thanks for the reply. Yes I took that approach but it didn't work. That's why I dig a bit further down and tried locate where exactly the error is. I figured that new lines in the base64 encoded string buffer are necessary to cast a certificate out of it. May be my observation is wr

Re: Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-14 Thread Patrick Patterson
On Wednesday 14 March 2007 04:05:45 you wrote: > Hi list, > > I need to get an X509 *cert using string buffer, which is a base64 > encoded representation of it. In other words, if I have the contents of > a ---BEGIN CERTIFICATE--- and --END CERTIFICATE--- of a .pem file, I > need to retrieve the c

Problem with EVP_Decode and line breaks in a X509 certificate

2007-03-14 Thread Kaushalye Kapuruge
Hi list, I need to get an X509 *cert using string buffer, which is a base64 encoded representation of it. In other words, if I have the contents of a ---BEGIN CERTIFICATE--- and --END CERTIFICATE--- of a .pem file, I need to retrieve the certificate. I used d2i_X509_bio() function for this.