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.