Hi Nils,

2007/3/9, Nils Larsch <[EMAIL PROTECTED]>:

Jordi Jaen Pallares wrote:
> File offset before reading : 0
> File offset after reading : 47
> Error in d2i_X509_fp...
> 10976:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:tasn_dec.c:1291:
> 10976:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
> error:tasn_dec.c:380:Type=X509
> [EMAIL PROTECTED]:~/Work/test$

are you sure that the file doesn't contain a PEM encoded cert ?


Yes,  thank you !
the certificate can be read with :

   x = PEM_read_X509(fp, NULL, NULL, NULL);

Regards,

Jordi


Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to