How to sign a CAB file using signtool.exe?

  • I have 3 files
    mycert.cer
    mycert.pvk
    mycert.spc

Can someone explain to me which files should I use?

  1. I need to sign the Test.cab file using signtool.exe from the command line. But I don’t understand how to do it.
    Manual http://msdn.microsoft.com/en-us/library/8s9b9yaz(VS.80).aspx is not very good :(

Thanks in advance.

+3
source share
3 answers

Microsoft , . "signcode.exe", , "signtool.exe".

, signtool ( signtool signwizard), . . , Microsoft.

+2

1 , . .

  • C:\Program Files\Microsoft SDK\Windows\v7.0\Bin

  • MyApp.cab.

  • 2 , , . .

makecert -r -pe -n "CN = yourcompanyaddress.com" -b 01/01/2016 -e 01/01/2030 - Cert.cer -sv companyPvk.pvk

  1. PFX

pvk2pfx.exe -pvk companyPvk.pvk -spc companyCert.cer -pfx companyPfx.pfx

, companyPfx.pfx

  1. , , CAB , , PFX

SignTool/f companyPfx.pfx MyApp.cab

  1. , , .

, .

+1

Source: https://habr.com/ru/post/1731018/


All Articles