Guillaume wrote:

I am trying to send encrypted S/MIME messages over a script on windows system (I did not choose to work with windows!).

I choosed to use cmsutil with command line.

I am using this command :
cmsutil.exe -C -i messageClair.txt -o messageChiffre.msg -r [EMAIL PROTECTED] -d "."


cmsutil asks me to specify an envelope : why???

The CMS standard (and its predecessor, PKCS7) define "encrypted" and "enveloped" data, as two different message types for data that is encrypted. S/MIME uses enveloped. You want the -E option, not -C. See http://lxr.mozilla.org/mozilla/source/security/nss/tests/smime/smime.sh#147 for an example.

Better yet, use the perl script
http://lxr.mozilla.org/mozilla/source/security/nss/cmd/smimetools/smime
to produce your signed and/or encrypted messages.  cmsutil only produces
and consumes raw binary CMS messages (which are buried inside S/MIME
messages).  The perl script produces (and consumes) true S/MIME messages.

--
Nelson B
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to