How to get To-Be-Signed portion of certificate with openssl api ?

2006-02-28 Thread Tatsuya Tsurukawa
Hi All, I have a quick question. How can I get To-Be-Signed portion of certificate with openssl api ? In case of using JDK, X509Certificat class and getTBSCertificate() method seem to be available for the same purpose. I'm not familiar with the openssl api, and I couldn't find the appropriate api

Re: How to get To-Be-Signed portion of certificate with openssl api ?

2006-02-28 Thread Kyle Hamilton
You're looking for X.509 encoding of the CSR. Thus, you'd be looking at the X509_* series of functions. Since it's a request, the subset of functions would be X509_REQ_*. To decode it, you want d2i_X509_REQ_{bio|fp}(). I have to doublecheck the functions that can be used to get info out of it,

Re: How to get To-Be-Signed portion of certificate with openssl api ?

2006-03-01 Thread Dr. Stephen Henson
On Wed, Mar 01, 2006, Tatsuya Tsurukawa wrote: > Hi All, > > I have a quick question. > How can I get To-Be-Signed portion of certificate with openssl api ? > In case of using JDK, X509Certificat class and getTBSCertificate() method > seem to be available for the same purpose. > > I'm not famili

Re: How to get To-Be-Signed portion of certificate with openssl api ?

2006-04-07 Thread Tatsuya Tsurukawa
Dear Steve, I've tried it with the following code, but I couldn't get the correct data yet. Could you please point out the wrong point of the following code. // variables int iResult = 0; unsigned char cert[2000]; BIO *bioPtr; X509 *certPtr; unsigned char *tbs; : // make X509 structure bioPtr =

Re: How to get To-Be-Signed portion of certificate with openssl api ?

2006-04-07 Thread Dr. Stephen Henson
On Fri, Apr 07, 2006, Tatsuya Tsurukawa wrote: > Dear Steve, > > I've tried it with the following code, but I couldn't get the correct data > yet. Could you please point out the wrong point of the following code. > > // variables > int iResult = 0; > unsigned char cert[2000]; > BIO *bioPtr; > X5