Hi all,
I'd like to solve this problem.
I need to send a SIGN message with two or three files as attachment from
Linux MTA server.
(The message may be empty.) For example:
One of the attachment file is ".pdf" file, the second is "sign" of the
.pdf file and the third file
is "certificate".
When I've got one .pdf file it's simple:
-> /usr/bin/uuencode -m file.pdf file.pdf > codefile.code
-> drop the first raw from the "codefile.code" file
-> openssl smime -sign -text -binary -in codefile.code -out smime.p7s
-signer some.pem -inkey somekey.pem
-> correct smime.p7s file by vi editor - the MIME attachment header:
MIME-Version: 1.0
Content-Type: multipart/signed;
protocol="application/x-pkcs7-signature"; micalg=sha1;
boundary="----87C3A5C3C
DB2C00CE1827FA76401CFB5"
This is an S/MIME signed message
------87C3A5C3CDB2C00CE1827FA76401CFB5
Content-Type: application/pdf; name="file.pdf"
Content-Transfer-Encoding: base64
Content-Description: file.pdf
Content-Disposition: attachment; filename="file.pdf"
<CRLF>
JVBERi0xLjQNCjEgMCBvYmoNCjw8DQovUHJvZHVjZXIgKCkNCi9BdXRob3Ig
KCkNCi9DcmVhdGlvbkRhdGUgKEQ6MjAwNzExMjMxMTM0NTcpDQovQ3JlYXRv
ciAoKQ0KL0tleXdvcmRzICgpDQovU3ViamVjdCAoKQ0KL1RpdGxlICgpDQov
etc.
-> And when send (/usr/sbin/sendmail.sendmail) this file via script.
BUT now there are THREE FILES in attachment, and it seems it's
impossible to use the command:
openssl smime -sign -text -binary -in codefile.code etc.
Be so kind and try to get me some help how sign message with more then
one file in mail attachment.
Thank you very much.
Best regards,
Sonenberk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org