Hi,

I would like to use OpenSSL 0.97c for Windows to decrypt S/MIME encrypted
messages which contain attachments. I am especially interested in
decrypting the attachments.

The encrypted mail is available in a source file called
"source.msg" (see [1]).

I used the following command on this file:
openssl smime -decrypt -in c:\source.msg -recip c:\abr2006.pem.cer
-inkey c:\abr2006.pem -out c:\dest.msg

I had expected that the new file dest.msg would contain the decrypted
message. But as you can see in [2], the new file is still encrypted.

So what did I do wrong?
Are there any special steps I have to take to decrypt attachments?

Please don't mind if this is a dumb question, but I am new to OpenSSL
and I have no clue :-/
Thanks in advance for your answers!


With kind regards,


Christian




[1] Source File
====================================================
X-UIDL-JANA-SERVER: 0MKqpg-1DMYFX3jIl-0004et
Return-Path: <[EMAIL PROTECTED]>
Delivery-Date: Fri, 15 Apr 2005 23:21:18 +0200
Received: from [IP address] (helo=server)
        by mxeu5.kundenserver.de with ESMTP (Nemesis),
        id 0MKqpg-1DMYFX3jIl-0004et; Fri, 15 Apr 2005 23:21:15 +0200
MIME-Version: 1.0
Content-Type: application/pkcs7-mime;smime-type=enveloped-data;name=smime.p7m;
        name="smime.p7m";
        smime-type=enveloped-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="smime.p7m"
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
Subject: BLA
Date: Fri, 15 Apr 2005 23:21:10 +0200
Message-ID: <[EMAIL PROTECTED]>
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Thread-Topic: BLA
Thread-Index: AcVCAQs8SWiLcAkoQfuf6CehVUwoUw==
From: "BLA" <[EMAIL PROTECTED]>
To: "BLABLA" <[EMAIL PROTECTED]>
Envelope-To: [EMAIL PROTECTED]

MIAGCSqGSIb3DQEHA6CAMIACAQAxggL6MIIBeQIBADCB4TCBzDEXMBUGA1UEChMOVmVyaVNpZ24s
[snipped more data]



[2] Destination File
====================================================

Content-Type: application/x-pkcs7-mime; name=smime.p7m; smime-type=signed-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7m

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggazQ29u
[snipped more data]

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

Reply via email to