I'm signing an EXE program with a certificate issued by a trusted CA. I'm using signtool.exe from the Windows SDK v6.0a. The certificate is located in the computer store and it is in the "Personals" folder. My command line is : sign /sm /n "My company" /d MyProductName /du http://my.url.com [...] read more
I have an MSBuild that runs through Jenkins with signed code in one of the components. When I run the build after starting Jenkins as the same user that the visual studio project was built with originally, it works fine. When I run the project as that same user through [...] read more
We have a legacy Windows Workflow process that uses SignerSign to apply a digital signature to an EXE. We are migrating away from the Windows Workflow process, and so I have been preparing a tool within the context of our new process to perform the same signing operation. I copy/pasted [...] read more
I am developing a c# .net 3.5 application (compiled to anycpu) I need to sign an executable. I tried to use the code in here with some modifications. I didn't search for the certificate in the store, instead I loaded it form a pfx file: var cert = new X509Certificate2("myCert.pfx", [...] read more
I found a brilliant use of SignerSignEx on C# here: https://stackoverflow.com/a/26372061 It works fine on the dev. machine, but on Azure WebJob you have to use something like this: X509Certificate2 cert = new X509Certificate2(certPath, certPassword, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable); But with X509KeyStorageFlags.MachineKeySet flag SignerSignEx returns hResult=-2146885626 (Error code 0x80092006 [...] read more