Signtool error: No certificates were found that met all given criteria with a Windows Store App?

后端 未结 19 1728
忘掉有多难
忘掉有多难 2020-12-02 05:41

I\'m trying to sign a Windows 8 appx package with a pfx file I have. I\'m using a command like so:

signtool.exe sign /fd sha256 /f \"key.pfx\" \"app.appx\"
<         


        
19条回答
  •  旧时难觅i
    2020-12-02 06:18

    I had this problem and I'm not entirely sure which step below made it work, but hope this helps somebody else...this is what I did:

    • Install the downloaded certificate (.crt) into certificates (I put it into “personal” store) - right click on .crt file and click Install Certificate.
    • Run certmgr.msc and export the certificate (found in whichever store you used in the 1st step) as a pfx file including private key, and extended properties (probably unnecessary)
    • Use the exported .pfx file when signing your project
    • Example signtool: signtool sign /f "c:\mycert.pfx" /p mypassword /d "description" /t http://timestamp.verisign.com/scripts/timstamp.dll $(TargetPath)
      where the password is the same as provided during Export

提交回复
热议问题