How do I sign exes and dlls with my code signing certificate -
(i purchased code signing cert thawte , have been going out of mind frustration @ whole process.
what have them are:
- .spc / .p7b file
- .pvk file
(note not have pfx file them. god knows why, have been fighting tech support week)
in case find "help" links on site , @ ms signcode.exe useless me because can't find exe on machine, have signtool.exe.
unfortunately mystified @ command line parameters listed on ms site.
specifically, parameters use , values? tried thought obvious not work @ all.
i can signing wizard work, need work non-interactively in hudson ci batch file.
it doesn't seem should difficult, far black magic.
thanks help
first, can generate own pfx file using pvk2pfx tool described @ http://msdn.microsoft.com/en-us/library/ff549703(vs.85).aspx
something like
pvk2pfx -pvk cert.pvk -spc cert.spc -pfx cert.pfx -pi password
ought trick.
secondly, signtool tool you're after. http://msdn.microsoft.com/en-us/library/aa387764(vs.85).aspx
signtool sign /?
gets help, basic command you're after is
signtool sign /f cert.pfx /p password target.exe
which sign target.exe. gets more complex if want put certificate certificate store on machine (this csp bit). useful though doing signing on lot of dev machines, or on build lab machines want avoid putting certificate in source control.
Comments
Post a Comment