Re: d2i_X509() failed.

2004-07-13 Thread Nils Larsch
[EMAIL PROTECTED] wrote:
Thanks for the link..
Did you get the dump I have sent?
yes, but as Erwann Abalea already wrote is the certificate
not correct
Nils
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


RE: d2i_X509() failed.

2004-07-13 Thread sakthi.subramaniam

Thanks for the link..
Did you get the dump I have sent?

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch
>Sent: Tuesday, July 13, 2004 6:29 PM
>To: [EMAIL PROTECTED]
>Subject: Re: d2i_X509() failed.
>
>
>[EMAIL PROTECTED] wrote:
>...
>> What is dumpasn1? How can I take that?
>
>It's nice ASN.1 tool written by Peter Gutmann, see:
>http://www.cs.auckland.ac.nz/~pgut001/
>
>Nils
>
>
>__
>OpenSSL Project http://www.openssl.org
>User Support Mailing List[EMAIL PROTECTED]
>Automated List Manager   [EMAIL PROTECTED]
>

Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: d2i_X509() failed.

2004-07-13 Thread Nils Larsch
[EMAIL PROTECTED] wrote:
...
What is dumpasn1? How can I take that?
It's nice ASN.1 tool written by Peter Gutmann, see:
http://www.cs.auckland.ac.nz/~pgut001/
Nils
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: [openssl-users] RE: d2i_X509() failed.

2004-07-13 Thread Erwann Abalea
Bonjour,

On Tue, 13 Jul 2004 [EMAIL PROTECTED] wrote:

> Attached the cert dump..

Do this on a well installed Unix machine:
sed 's/0x//g' < cert_dump.txt | tr -d ',' | perl -e 'while () { print 
pack("H*", $_); }' > testcert.der

You'll have a new file named testcert.der, containing what your dump
represents.

> What is dumpasn1? How can I take that?

openssl asn1parse -inform DER -i -in testcert.der

this will show you that your object file is invalid. In fact, something
must have gone wrong with the creation of this certificate, because
starting at the validity date, you end up with a stream of 0xff
characters, followed by 0x00 characters.

But it starts as a certificate.

> Thanks.,
> Sakthi S G
>
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch
> >Sent: Tuesday, July 13, 2004 5:47 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: d2i_X509() failed.
> >
> >
> >[EMAIL PROTECTED] wrote:
> >> Hi.,
> >>  I will be getting the certificates in a buffer in DER format.The
> >> buffer of 2048 bytes contains the following data I am copying the
> >> initial few bytes and then the trailing bytes.: With the start bytes
> >> we can identify as DER format. When I pass this buffer to d2i_X509()
> >> it fails. -buffer contents starts here
> >---
> >>
> >>
> >0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,
> >> 0x
> >>
> >10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,
> >0x8B,0x44
> >> ,0xA0,0x
> >
> >can't see something obviously wrong with this, what does
> >dumpasn1 say ? could you send us the whole data in an attachment ?
> >
> >Cheers,
> >Nils
> >
> >__
> >OpenSSL Project http://www.openssl.org
> >User Support Mailing List[EMAIL PROTECTED]
> >Automated List Manager   [EMAIL PROTECTED]
> >
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments to this 
> message are intended
> for the exclusive use of the addressee(s) and may contain confidential or privileged 
> information. If
> you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
> PROTECTED] immediately
> and destroy all copies of this message and any attachments.

-- 
Erwann ABALEA <[EMAIL PROTECTED]> - RSA PGP Key ID: 0x2D0EABD5
-
moi je veux bien lire les FAQ, mais c'est pareil, je sait pas ou
elle sont...
Ne faudrait il pas faire une FAQ qui dit ou sont les FAQs ?
-+- M.D. in Guide du Neuneu Usenet : Oû sont les FQ -+-0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,0x10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,0x8B,0x44,0xA0,0x9F,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,0x05,0x00,0x30,0x81,0x82,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x55,0x53,0x31,0x18,0x30,0x16,0x06,0x03,0x55,0x04,0x0A,0x13,0x0F,0x43,0x61,0x62,0x6C,0x65,0x4C,0x61,0x62,0x73,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x31,0x11,0x30,0x0F,0x06,0x03,0x55,0x04,0x08,0x13,0x08,0x43,0x6F,0x6C,0x6F,0x72,0x61,0x64,0x6F,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x07,0x13,0x0A,0x4C,0x6F,0x75,0x69,0x73,0x76,0x69,0x6C,0x6C,0x65,0x31,0x10,0x30,0x0E,0x06,0x03,0x55,0x04,0x0B,0x13,0x07,0x43,0x41,0x30,0x30,0x30,0x30,0x31,0x31,0x1F,0x30,0x1D,0x06,0x03,0x55,0x04,0x03,0x13,0x16,0x43,0x61,0x62,0x6C,0x65,0x4C,0x61,0x62,0x73,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x20,0x4D,0x66,0x67,0x00,0x27,0x27,0x00,0x00,0x00,0x80,0x18,0x00,0x30,0x38,0x32,0x37,0x30,0x30,0x30,0x30,0x30,0x30,0x5A,0x17,0x0D,0x32,0x33,0x30,0x38,0x32,0x37,0x32,0x33,0x35,0x39,0x35,0x39,0x5A,0x30,0x81,0xAA,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x55,0x53,0x31,0x21,0x30,0x1F,0x06,0x03,0x55,0x04,0x0A,0x13,0x18,0x53,0x63,0x69,0x65,0x6E,0x74,0x69,0x66,0x69,0x63,0x2D,0x41,0x74,0x6C,0x61,0x6E,0x74,0x61,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,0x0B,0x13,0x09,0x4F,0x70,0x65,0x6E,0x43,0x61,0x62,0x6C,0x65,0x31,0x0F,0x30,0x0D,0x06,0x03,0x55,0x04,0x0B,0x13,0x06,0x50,0x4B,0x4D,0x36,0x30,0x30,0x31,0x38,0x30,0x36,0x06,0x03,0x55,0x04,0x0B,0x13,0x2F,0x35,0x30,0x33,0x30,0x20,0x53,0x75,0x67,0x61,0x72,0x6C,0x6F,0x61,0x66,0x20,0x50,0x61,0x72,0x6B,0x77,0x61,0x79,0x2C,0x20,0x4C,0x61,0x77,0x72,0x65,0x6E,0x63,0x65,0x76,0x69,0x6C,0x6C,0x65,0x2C,0x20,0x47,0x41,0x20,0x33,0x30,0x30,0x34,0x34,0x31,0x19,0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x13,0x10,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x34,0x32,0x36,0x42,0x32,0x34,0x43,0x36,0x30,0x81,0x9F,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,

RE: d2i_X509() failed.

2004-07-13 Thread sakthi.subramaniam

Attached the cert dump..
What is dumpasn1? How can I take that?

Thanks.,
Sakthi S G

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch
>Sent: Tuesday, July 13, 2004 5:47 PM
>To: [EMAIL PROTECTED]
>Subject: Re: d2i_X509() failed.
>
>
>[EMAIL PROTECTED] wrote:
>> Hi.,
>>  I will be getting the certificates in a buffer in DER format.The
>> buffer of 2048 bytes contains the following data I am copying the
>> initial few bytes and then the trailing bytes.: With the start bytes
>> we can identify as DER format. When I pass this buffer to d2i_X509()
>> it fails. -buffer contents starts here
>---
>>
>>
>0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,
>> 0x
>>
>10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,
>0x8B,0x44
>> ,0xA0,0x
>
>can't see something obviously wrong with this, what does
>dumpasn1 say ? could you send us the whole data in an attachment ?
>
>Cheers,
>Nils
>
>__
>OpenSSL Project http://www.openssl.org
>User Support Mailing List[EMAIL PROTECTED]
>Automated List Manager   [EMAIL PROTECTED]
>


Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,0x10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,0x8B,0x44,0xA0,0x9F,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,0x05,0x00,0x30,0x81,0x82,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x55,0x53,0x31,0x18,0x30,0x16,0x06,0x03,0x55,0x04,0x0A,0x13,0x0F,0x43,0x61,0x62,0x6C,0x65,0x4C,0x61,0x62,0x73,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x31,0x11,0x30,0x0F,0x06,0x03,0x55,0x04,0x08,0x13,0x08,0x43,0x6F,0x6C,0x6F,0x72,0x61,0x64,0x6F,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x07,0x13,0x0A,0x4C,0x6F,0x75,0x69,0x73,0x76,0x69,0x6C,0x6C,0x65,0x31,0x10,0x30,0x0E,0x06,0x03,0x55,0x04,0x0B,0x13,0x07,0x43,0x41,0x30,0x30,0x30,0x30,0x31,0x31,0x1F,0x30,0x1D,0x06,0x03,0x55,0x04,0x03,0x13,0x16,0x43,0x61,0x62,0x6C,0x65,0x4C,0x61,0x62,0x73,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x20,0x4D,0x66,0x67,0x00,0x27,0x27,0x00,0x00,0x00,0x80,0x18,0x00,0x30,0x38,0x32,0x37,0x30,0x30,0x30,0x30,0x30,0x30,0x5A,0x17,0x0D,0x32,0x33,0x30,0x38,0x32,0x37,0x32,0x33,0x35,0x39,0x35,0x39,0x5A,0x30,0x81,0xAA,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x55,0x53,0x31,0x21,0x30,0x1F,0x06,0x03,0x55,0x04,0x0A,0x13,0x18,0x53,0x63,0x69,0x65,0x6E,0x74,0x69,0x66,0x69,0x63,0x2D,0x41,0x74,0x6C,0x61,0x6E,0x74,0x61,0x2C,0x20,0x49,0x6E,0x63,0x2E,0x31,0x12,0x30,0x10,0x06,0x03,0x55,0x04,0x0B,0x13,0x09,0x4F,0x70,0x65,0x6E,0x43,0x61,0x62,0x6C,0x65,0x31,0x0F,0x30,0x0D,0x06,0x03,0x55,0x04,0x0B,0x13,0x06,0x50,0x4B,0x4D,0x36,0x30,0x30,0x31,0x38,0x30,0x36,0x06,0x03,0x55,0x04,0x0B,0x13,0x2F,0x35,0x30,0x33,0x30,0x20,0x53,0x75,0x67,0x61,0x72,0x6C,0x6F,0x61,0x66,0x20,0x50,0x61,0x72,0x6B,0x77,0x61,0x79,0x2C,0x20,0x4C,0x61,0x77,0x72,0x65,0x6E,0x63,0x65,0x76,0x69,0x6C,0x6C,0x65,0x2C,0x20,0x47,0x41,0x20,0x33,0x30,0x30,0x34,0x34,0x31,0x19,0x30,0x17,0x06,0x03,0x55,0x04,0x03,0x13,0x10,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x34,0x32,0x36,0x42,0x32,0x34,0x43,0x36,0x30,0x81,0x9F,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x01,0x05,0x00,0x03,0x81,0x8D,0x00,0x30,0x81,0x89,0x02,0x81,0x81,0x00,0xDA,0xC6,0x72,0xEA,0x0A,0xB3,0xFE,0xC3,0x4B,0x4A,0x15,0xA1,0x3E,0xA8,0xD8,0x39,0x22,0x67,0x37,0xB3,0x2E,0x9D,0xB3,0x32,0x93,0x94,0x74,0xF4,0x1B,0xED,0x7A,0x82,0x16,0xE8,0xBC,0xDC,0xB8,0x84,0xE4,0xFA,0x0C,0xDD,0xDA,0x9E,0x66,0x99,0x74,0xDD,0x8E,0x40,0xC3,0xA6,0x1F,0x5D,0x12,0x54,0x9A,0x0B,0x0D,0xE4,0x0B,0xB9,0x84,0xA9,0x9C,0x43,0xC2,0x3F,0x18,0x6E,0xC0,0xA9,0xB8,0x4B,0xEA,0x94,0xDB,0xE8,0x8F,0x13,0x0E,0x08,0x12,0x31,0xA9,0xCB,0xBE,0x21,0x92,0xB1,0xD6,0xBA,0x50,0x34,0x25,0xAE,0x9E,0x71,0x1F,0x03,0x7A,0x17,0x17,0x66,0xA2,0xCA,0xD5,0xEA,0x8E,0x7E,0x2C,0x94,0xD1,0xCE,0xAA,0x96,0x41,0x4D,0xD4,0xB4,0x03,0x6F,0x73,0x89,0x87,0xC0,0x5F,0x3F,0x02,0x03,0x01,0x00,0x01,0xA3,0x33,0x30,0x31,0x30,0x0E,0x06,0x03,0x55,0x1D,0x0F,0x01,0x01,0xFF,0x04,0x04,0x03,0x02,0x05,0xA0,0x30,0x1F,0x06,0x03,0x55,0x1D,0x23,0x04,0x18,0x30,0x16,0x80,0x14,0xAE,0xE7,0x74,0xA9,0x2B,0x94,0xFB,0xCF,0x97,0x59,0x44,0xAA,0xD8,0x58,0x9C,0xEA,0xF3,0x72,0xCF,0xBD,0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x05,0x05,0x00,0x03,0x82,0x01,0x01,0x00,0x06,0x26,0x85,0x34,0x52,0xE8,0x54,0xD8,0x4B,0xAD,0xCD,0x44,0x2E,0x1

Re: d2i_X509() failed.

2004-07-13 Thread Nils Larsch
[EMAIL PROTECTED] wrote:
Hi.,
 I will be getting the certificates in a buffer in DER format.The buffer
of 2048 bytes contains the following data I am copying the initial few
bytes and then the trailing bytes.:
With the start bytes we can identify as DER format. When I pass this
buffer to d2i_X509() it fails.
-buffer contents starts here ---
0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,0x
10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,0x8B,0x44
,0xA0,0x
can't see something obviously wrong with this, what does dumpasn1 say ?
could you send us the whole data in an attachment ?
Cheers,
Nils
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


RE: d2i_X509() failed.

2004-07-13 Thread sakthi.subramaniam

Hi.,
 I will be getting the certificates in a buffer in DER format.The buffer
of 2048 bytes contains the following data I am copying the initial few
bytes and then the trailing bytes.:
With the start bytes we can identify as DER format. When I pass this
buffer to d2i_X509() it fails.
-buffer contents starts here ---

0x30,0x82,0x03,0x67,0x30,0x82,0x02,0x4F,0xA0,0x03,0x02,0x01,0x02,0x02,0x
10,0x50,0x01,0x59,0x49,0x40,0xC2,0x76,0xB1,0x94,0x16,0x43,0xEE,0x8B,0x44
,0xA0,0x
---valid
datas-
29,0xD1,0x0F,0x86,0x4E,0x5C,0x45,0x7D,0xBF,0x34,0xB0,0x7B,0xAB,0xAB,0xDC
,0x38,0x38,0xE0,0x81,0x23,0x7F,0x8C,0xEE,0x8B,0xBD,0x18,0x19,0x41,0xFE,0
xF0,0xF3,0x51,0x10,0xEA,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF
F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x
FF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0
xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xF
F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x
FF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0
xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,-> rest of buffer is
filled with zeros.

If you need any other information, I can give..Is it possible to have
certificates in other formats apart from PEM/DER? If yes how can I
convert the same?
Thanks Nils for ur help..
Sakthi S G



>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch
>Sent: Tuesday, July 13, 2004 4:27 PM
>To: [EMAIL PROTECTED]
>Subject: Re: d2i_X509() failed.
>
>
>[EMAIL PROTECTED] wrote:
>> Hi .,
>>  Is it possible that to have certificates in other formats like PKCS
>> apart from PEM/DER? In that case how can we convert the PKCS to X509
>> format?Is there any interface available on openssl? What way we can
>> identify the format of the certificate. According to my
>understanding
>> DER and PKCS format are same if not correct me.
>
>it would be useful if you could give us an example of the data
>your are trying to decode
>
>Cheers,
>Nils
>
>__
>OpenSSL Project http://www.openssl.org
>User Support Mailing List[EMAIL PROTECTED]
>Automated List Manager   [EMAIL PROTECTED]
>

Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: d2i_X509() failed.

2004-07-13 Thread Nils Larsch
[EMAIL PROTECTED] wrote:
Hi .,
 Is it possible that to have certificates in other formats like PKCS
apart from PEM/DER? In that case how can we convert the PKCS to X509
format?Is there any interface available on openssl? What way we can
identify the format of the certificate. According to my understanding
DER and PKCS format are same if not correct me.
it would be useful if you could give us an example of the data your
are trying to decode
Cheers,
Nils
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


RE: d2i_X509() failed.

2004-07-13 Thread sakthi.subramaniam

Hi .,
 Is it possible that to have certificates in other formats like PKCS
apart from PEM/DER? In that case how can we convert the PKCS to X509
format?Is there any interface available on openssl? What way we can
identify the format of the certificate. According to my understanding
DER and PKCS format are same if not correct me.

Thanks a lot for your help.,
Sakthi S G


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Sakthi
>Subramanian (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
>Sent: Tuesday, July 13, 2004 10:47 AM
>To: [EMAIL PROTECTED]
>Subject: d2i_X509() failed.
>
>
>Hi.,
>  I am using d2i_x509() function for converting the
>certificates from DER to PEM. It is failing at file
>:tasn_dec.c  function:asn1_template_ex_d2i() line number 353.
>( version 0.9.7c and 0.9.7b also) The DER format buffer
>contains valid certificates of 2048 bytes. At the end it has
>the sequence of 0xFF  then filled with zeros.
>
>What could be the problem for the cause of d2i_X509() failure?
>
>Thanks and Regards.,
>Sakthi  S G
>__
>OpenSSL Project http://www.openssl.org
>User Support Mailing List[EMAIL PROTECTED]
>Automated List Manager   [EMAIL PROTECTED]
>

Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


d2i_X509() failed.

2004-07-12 Thread sakthi.subramaniam
Hi.,
  I am using d2i_x509() function for converting the certificates from
DER to PEM.
It is failing at file :tasn_dec.c  function:asn1_template_ex_d2i() line
number 353. ( version 0.9.7c and 0.9.7b also)
The DER format buffer contains valid certificates of 2048 bytes. At the
end it has the sequence of 0xFF  then filled with zeros.

What could be the problem for the cause of d2i_X509() failure?

Thanks and Regards.,
Sakthi  S G
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]