Forum Discussion
K_N11no
Mar 04, 2019Copper Contributor
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.
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.
- jvintzel
Microsoft
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_N11noCopper 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.
- James Pike
Microsoft
Hi K_N11no,
That error implies that you are using an invalid certificate for package signing. I suspect the instructions you followed for a WCF certificate resulted in a certificate not quite right for application packaging.
Please check out:
https://docs.microsoft.com/en-us/windows/uwp/packaging/create-certificate-package-signing
If you still encounter problems with the certificate generated via those instructions, please let me know.
Thanks!
James