Arnaud De Timmerman wrote:
>
> hi,
>
> Thanks for answers about the exit codes.
>
> On the web page for openssl, s/mime utility gives an example for sending an
> email with sendmail :
>
> ****************************
> openssl smime -sign -in in.txt -text -signer mycert.pem -from [EMAIL PROTECTED]
> -to someone@somewhere -subject "Signed message" | sendmail someone@somewhere
> ****************************
>
> This command works perfectly but how can I add file attachments to the output ?
> It's of course very important for me that, on the other side, the recipient
> still consider my email as a signed one.
>
You need to manually create the MIME encoded content (typically
multipart/mixed) with the appropriate attachment. Then use exactly the
same syntax as above except you omit the -text argument because you
don't want it to add text/plain headers automatically since you are
supplying your own.
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]