On Wed, Jun 01, 2005 at 12:19:11PM +0100, Peter Cope wrote:
> Try using the asn1parser (an option with openssl).  

no problem: asn1parse tells me 

    0:d=0  hl=2 l=inf  cons: SEQUENCE
    2:d=1  hl=2 l=   9 prim: OBJECT            :pkcs7-envelopedData
    ...

But I'm realy confused because exactly the same message sometimes 
might/mightnot decrypt. Could it have something todo with openssl 
initialisation? Therefor I'm interested to know the possible reasons of

  openssl-0.9.6: error:0D06B078:asn1 encoding routines:ASN1_get_object:header 
too long:asn1_lib.c:139:
  openssl-0.9.7: error:0D06B08E:asn1 encoding routines:ASN1_d2i_bio:not enough 
data:a_d2i_fp.c:240:

Thanks
-- Beat

> I have an intermediate SMIME decrypting problem. I'm using following 
> commandline interface (little bit outdated openssl 0.9.6b @ HPUX-B.11.11):
> 
> cat email | openssl smime -decrypt -inkey mykey -recip mycert
> 
> This works usually without problems. But Emails from one particular
> address I can decrypt only most of the time. Sometimes I'll get
> following error message:
> 
> openssl-0.9.6b:
> 
> Error reading S/MIME message
> 27549:error:0D06B078:asn1 encoding routines:ASN1_get_object:header too 
> long:asn1_lib.c:139:
> 27549:error:21078082:PKCS7 routines:B64_READ_PKCS7:decode 
> error:pk7_mime.c:142:
> 27549:error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse 
> error:pk7_mime.c:299:
> 
> same effect with openssl-0.9.7-beta6:
> 
> Error reading S/MIME message
> 13482:error:0D06B08E:asn1 encoding routines:ASN1_d2i_bio:not enough 
> data:a_d2i_fp.c:240:
> 13482:error:21078082:PKCS7 routines:B64_READ_PKCS7:decode 
> error:pk7_mime.c:142:
> 13482:error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse 
> error:pk7_mime.c:299:
> 
> When I'll try the same command later it might or might not get decrypted 
> successful ... 
> What does "header too long" mean in the context of SMIME decrypt (or "not 
> enough data")?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to