Forum Discussion
Can not Sign the MSIX pacakge with self-signed certificate
Hi all,
I did quite some testing with different types of certificates. What I found out is:
- the MSIX Packaging Tool has its own Version of signtool boxed (I guess to remove the SDK as prerequisite
- Certificate passwords really make it break
What my solution was (beside to query for the most updated Insider SDK) to just copy out the Inboxed Signtool and run it on the commandline:
location on my box:
"C:\Program Files\WindowsApps\Microsoft.MsixPackagingTool_1.2018.725.0_x64__8wekyb3d8bbwe\signtool.exe"
signtool.exe sign /a /v /fd SHA256 /f "C:\MyCodeSignCustom.pfx" /p "SuperSecurePassword" "C:\MSIXPackage.appx"
Kind regards
/Johannes
@Johannes
Thank you very much. This worked for me.
I used the command line to copy out the signtool.exe file, then ran my signtool command and voila, my msix package was able to be signed. I still needed to turn on "Sideload apps" from the "for Developers" page under Windows "Settings", but that makes sense since I am not installing from the Store.