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

enter image description here

the key file created, can see in capture below.

enter image description here

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.

enter image description here

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) 

everything need know authenticode code signing


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -