I just spend about 1 hour to get working this stuff. So I did it without certificate's password.
Just to simplify all commands use following steps
Use this folder C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin
Copy to this folder your MyApp.cab file.
Create 2 files using this command without password as I did. Ignore to input password in popup that appears.
makecert -r -pe -n "CN=yourcompanyaddress.com" -b 01/01/2016 -e
01/01/2030 -sky exchange companyCert.cer -sv companyPvk.pvk
- After this execute another command to create PFX file
pvk2pfx.exe -pvk companyPvk.pvk -spc companyCert.cer -pfx
companyPfx.pfx
So now you see in this folder companyPfx.pfx
- And finally sign your CAB file like this using PFX file
SignTool sign /f companyPfx.pfx MyApp.cab
- Open properties of this file and you should see that it is signed already.
I hope it will be useful.