Alexander Skwar wrote:
>
>
> But how do I sign *AND* encrypt? I tried this:
>
> openssl smime -sign -signer client-cert.pem -encrypt -inkey client-cert.pem\
> -to [EMAIL PROTECTED] -from [EMAIL PROTECTED] -in InFile -out OutFile
>
That wont work, it will just encrypt with the way the smime command
currently works. It should really throw an error message.
>
> What am I doing wrong? Or would the correct way to first encode the
> message, and then use the encoded message as the input file for the signing?
>
Normally you sign a message and then use it as input to encrypt. Thats
what most mail clients mean by "sign and encrypt".
This is mentioned with an example in the manual page.
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]