Thanks to Vadim and others for their posts to me - I appreciate it.   You folks have 
confirmed the command I am using - SMIME.   By the way Vadim - It may qualify as a SET 
message but I don't think it is meant to be a SET message.  Also:  I apologize for not 
including the error messages in my last post:  end-of -the-day brain fade I guess.

Here are those error messages:

Error reading S/MIME message
23126:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too 
long:asn1_lib.c:138:
23126:error:21078082:PKCS7 routines:B64_READ_PKCS7:decode error:pk7_mime.c:142:
23126:error:2107A08B:PKCS7 routines:SMIME_read_PKCS7:pkcs7 parse error:pk7_mime.c:299:

There appears to be nothing wrong with the headers that I can just eyeball(again, the 
headers are after my signature - I included a few more that I excluded the last time 
because of identifying information - I just 'X'-ed that out this time), but the 
structure of the file is unusual compared to our other trading partners - it isn't a 
multipart file.   It is just simple single part message .    The file is signed with 
the trading partner's certificate, which I have as well.   Here is the command I am 
using:

[EMAIL PROTECTED] openssl smime -decrypt -recip MYCERT.pem -signer THEIRCERT.pem -in 
posteddata.dat -out clear.txt


Spencer Yost

===========BEGIN HEADERS ==============
Connection: close
Content-Disposition: attachment; filename=smime.p7m
Content-Length: 4241
Content-Transfer-Encoding: binary
Content-Type: application/pkcs7-mime; smime-type=enveloped-data; name=smime.p7m
Date: Wed, 10 Sep 2003 24:42:16 GMT
Disposition-Notification-Options: signed-receipt-protocol=optional, pkcs7-signature; 
signed-receipt-micalg=optional, sha1
Disposition-Notification-To: XXXXXXXXXXXXXXXXXXXX
From: [EMAIL PROTECTED]
Host: XXXXXXXXXXXXXXXXX
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Receipt-Delivery-Option: XXXXXXXXXXXXXXXXXXX
Recipient-Address: XXXXXXXXXXXXXXXXXXXXXXXXXX
Subject: 123369107237393;140034485600000E
Size to read: 4241

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

Reply via email to