Forum Discussion

K_N11no's avatar
K_N11no
Copper Contributor
Mar 04, 2019
Solved

MSIX Packaging Too: SignTool Error: certificate file not found

I tried to convert msi to misx by using MSIX Packaging Tool, but faced SignTool error.

 

Before converting, I made the temporary certificate by following steps.

<https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-create-temporary-certificates-for-use-during-development>

 

I selected the created cert in the MSIX Packaging Tool, and started the packaging.

The packaging looked like successfully finished, but I could not install my app by using created MSIX because it doesn't have cert.

I checked the log file, then found there is SignTool Error, which said below.

[Error] File not found: <the path of my temporary cert>

[Error] signtool.exe failed, exit code = 1

 

I double checked there is certainly my temporary cert in the folder I selected on MSIX Packaging Tool.

Could you tell me how should I work around this?

 

OS version: 17763.316

MSIX Packaging Tool version: 1.2019.110.0

  • You can run signtool.exe manually to sign the package.  

     

    https://docs.microsoft.com/en-us/windows/uwp/packaging/sign-app-package-using-signtool

     

    Usually something like this: signtool.exe sign -f mycert.pfx -p {password} -fd SHA256 -v appPackage.msix

     

    The command line would tell you a specific error to help troubleshoot.  You can also look in the event viewer under: Applications and Services Logs > Microsoft > Windows > AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational

     

    It has errors specific to packaging.  If you file a feedback hub item on the issue that would help us out as well.

     

    John.  

  • You can run signtool.exe manually to sign the package.  

     

    https://docs.microsoft.com/en-us/windows/uwp/packaging/sign-app-package-using-signtool

     

    Usually something like this: signtool.exe sign -f mycert.pfx -p {password} -fd SHA256 -v appPackage.msix

     

    The command line would tell you a specific error to help troubleshoot.  You can also look in the event viewer under: Applications and Services Logs > Microsoft > Windows > AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational

     

    It has errors specific to packaging.  If you file a feedback hub item on the issue that would help us out as well.

     

    John.  

    • K_N11no's avatar
      K_N11no
      Copper Contributor

      John,

      Thank you for your prompt reply.

      Thanks to your advice, I was able to sign my package manually, but still not be able to install it.

      The error massage I got is below.

       

      "App installation failed with error massage: error 0x800B0110: Opening the package from location <my package>.msi failed. (ox800b0110)"

       

      I suppose the packaging didn't finish because of sightool error although I misunderstood it finished successfully.

      Attached files are feedback hub logs when MSIX packaging error occurred (which I referred in the previous post).

      I hope it will help to solve this problem.

       

      Thank you.

Resources