I have a macro on any MS Office file format. I would like to sign it programmatically using C# and the .NET framework.
I know I can use a .NET framework tool called signTool.exe to sign ms office files on the command line. The tool runs on top of the .NET framework. I would like to be able to replicate some of this behavior on a stand alone application. In other words I would like to know if its possible to produce the digest then sign and incorporate the signature to the MS Office file programmatically, and not through the signtool.exe
I assume it has to be related to: System.Security.Cryptography
?