Add codesign signature to an executable or a library

Certificate

Use signtool.exe to sign the dll/exe as following


signtool.exe sign /n "cert subject" /fd SHA256 /t http://timestamp.comodoca.com/authen
ticode filename.dll

This example will generate a code signature using SHA256, with the certificate in current user personal store that has a subject of "cert subject" and also add a timestamp to it.

Post a Comment

Previous Post Next Post