On Mon, Jan 02, 2006, Dr. Stephen Henson wrote:

> On Mon, Jan 02, 2006, George Garvey wrote:
> 
> >    Some problems w/reverse DNS prevented posting this until now.
> > 
> > On Wed, Dec 28, 2005 at 07:12:30PM +0100, Dr. Stephen Henson wrote:
> > > On Wed, Dec 28, 2005, George Garvey wrote:
> > > 
> > > You should be able to use the "smime" utility on the whole message 
> > > including
> > > headers for example:
> > > 
> > > openssl smime -verify -in message
> > > 
> > > or to output a standard PKCS#7 structure in PEM format:
> > > 
> > > openssl smime -pk7out -in message
> > > 
> > > then the standard "pkcs7" utility should tolerate it.
> > 
> >    Captured the HTTP post. Tried -verify as above:
> > 
> > openssl smime -verify -in src/fo/van/as2/inbound/2005-12-28:12:10:47
> > Error reading S/MIME message
> > 6747:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too 
> > long:asn1_lib.c:140:
> > 6747:error:21078082:PKCS7 routines:B64_READ_PKCS7:decode 
> > error:pk7_mime.c:142:
> > 6747:error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse 
> > error:pk7_mime.c:315:
> 
> Can you send the message (privately to me if you want) that is producing that
> error?
> 

Ah I can see the problem. The current MIME parser (wrongly) assumes the
transfer encoding will always be base64. A possible fix (haven't got round to
checking this yet) is in RT id #1261.

Alternatively if you just save the content excluding the headers to a file
you can use the -inform DER option to the 'smime' utility. 

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to