On Tue, Mar 29, 2005, Chevalier, Victor T. wrote:

> I am using mpack to create the mime message, it looks like openssl is
> putting S/MIME around the entire MIME message as if it were text...used
> this command:
> openssl smime -sign -inkey private/mykey.pem -signer mycert.pem -in
> mimemessage -out new.mail
> 
> maybe the syntax is wrong?
> 
> Or is it supposed to be like:
> 
> MIME-Version: 1.0
> Content-Type: ...
> 
> This is an S/MIME signed message
> 
> -------4DF5902840938
> 
> MIME MESSAGE HERE
> 
> -------4DF5902840938
> Content-Type: application/x-pkcs7-signature...
> 

The first part of a multipart/signed message is the data to be signed, the
second the signature itself.

So that's perfectly normal: if it appended text/plain content type in the
first part that would be wrong.

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                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to