Problem creating Signed and encrypted mail with attachment
843830Jul 13 2005 — edited May 1 2006Hi,
I'm using BouncyCastle and I need to create a Signed and encrypted
mail with attachment having headers like this:
MIME Header
Content-Type: multipart/signed;
protocol="application/x-pkcs7-signature";
micalg=SHA1;
Then an attachment
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"
How can I do it with BouncyCastle? I'm not be able to create it, I only create a mail like this:
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1;
Could you help me, please? Could you give me a real Java class example to do this, please?
Thanks in advance,
Manuela