Reputation: 23
The thing I would like to do is:
What I have/I did so far:
So far, so good. Next my naive approach is to sign the zip-file with this certificate and tell openssl to create the pkcs#7-signature so I can verify it using the ocsp-responder. But I have really not the foggiest notion whether the approach is correct and how to sign the zip-file. :-( If I have errors in reasoning please also let me know. :-)
Can someone please help me?
Upvotes: 2
Views: 7137
Reputation: 8867
You can use openssl to do that. Use the command
openssl.exe smime -sign -binary -in file.zip -signer certificate.der -inkey key.pem -outform DER -out file.p7b
You can verify the signature using openssl with this command
openssl.exe smime -verify -binary -inform DER -in file.p7b -content file.zip -noverify > nul
For more information read openssl manual here
Upvotes: 4