c# - how to correctly sign an executable -
so made little tool, console application, when running on win7 brings security box (uac). tried sign exe file in vs 2010 using following steps:
1- project properties
2- signing
3- create new key, shown below
the key file created, can see in capture below.
issues:
file still blocked security box, , when check file whether signed or not using signtool.exe, tells me, no signature found. please correct me if i'm following wrong steps.
assembly signing != authenticode signing.
to authenticode sign assembly signtool, you'll need code signing certificate trusted issuing authority.
you can issue following post-build command sign executable:
"signtool.exe" sign /f "$(solutiondir)mycertificate.pfx" /p certpassword /d "description" /du "http://myinfourl" /t "http://timeserver.from.cert.authority/" $(targetpath)
Comments
Post a Comment