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:
> > 
> > >    I'm having a very similar problem as this one.
> > >    I have a file I made from data sent from an AS2 system. The HTTP
> > > headers before the data are (abbreviated to the S/MIME stuff):
> > > Subject: EDIINTDATA
> > > Message-Id: <[EMAIL PROTECTED]>
> > > Disposition-Notification-To: inXServices
> > > Disposition-Notification-Options: 
> > > signed-receipt-protocol=optional,pkcs7-signature; 
> > > signed-receipt-micalg=optional,sha1
> > > Content-Type: application/pkcs7-mime; smime-type=enveloped-data; 
> > > name="smime.p7m"
> > > Content-Disposition: inline; filename="smime.p7m"
> > > Content-Length: 1334
> > > 
> > >    I saved the 1334 bytes after the blank line following the
> > > Content-Length to a file. I can't seem to use that file with OpenSSL.
> > > 
> > 
> > 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?

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