El hallabi-Kettani Abderrahmane schrieb:
try this :
openssl smime -sign -in ml.txt -signer mycert.pem
-text | openssl smime -encrypt -outform der -out mail.der -aes256 mycert.pem



I'm afraid this doesn't work either. The first command expects a private key (-inkey) and it provides SMIME code as well.
There is another way to attach a signature to data, using the SignedAndEnveloped content type.
Maybe the smime isn't the correct command either. I have some Java code that returns what I want. My first tests using the
openssl smime -in text.txt -sign -signer cert.pem -inkey prv.pem -outform DER > test.test
command returned almost what I want, it returns the signature but without the data.
Do you have any idea how to get the data as SignedAndEnveloped content-type?


Lars.

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

Reply via email to