I have a binary file that needs to be digitally signed in a PKCS7 format. I've looked at some of the openssl documentation and I see commands that can be used to look at PKCS7 formated files but not ways of creating them.
Does openssl have a program that will do this for me? I want to hand openssl the file, private key, and maybe a certificate and I want openssl to calculate the signature and attach it to the file such that it's in a PKCS7 format. Any suggestions? Thanks!