views:

84

answers:

2

Hello, I have a content application that stores PKCS7 detached signatures in a database and the original file on the disk. Now I'll have to send an unique file to a customer containing the original document and the signature, as it if were signed attached. Note that the document hasn't been and won't be encrypted. Does someone knows how to do it, programmaticaly (in .Net, Java, ...) or with a command line tool?

Thanks.

A: 

The book "Beginning Cryptography With Java" comes with examples which you can download for free here. In the chapter 9 folder is an example called SignedDataExample.java that might help.

GregS
Thanks, I'll have a look right now at the examples.
Erivaldo Josué
A: 

The S/MIME specification shows how you can take a detached PKCS #7 signature and a cleartext document and combine them into one multipart MIME message.

caf
I Had a look at section 3.4. Will see how I can do it. Thanks.
Erivaldo Josué