Jun 30 2020 01:07 PM
I created MSIX file and later signing the package with this command
signtool sign /fd SHA256 /v /sm /s My /n "ABC Corporation" /t http://timestamp.digicert.com file.msix
But signing failed with this error:
Sign tool Error: This file format cannot be signed because it is not recognized.
Appreciate any suggestions to resolve this issue
Jul 10 2020 09:13 AM
@Sri-Boddupalli This usually indicates an issue with the package (corrupted file etc.). You should get back to packaging and make the package "simpler" and see if signing works.
Jul 13 2020 03:53 PM
Hi @Sri-Boddupalli ,
Try setting this registry key:
Under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppxSIP; set LogLevel as DWORD to 3
Rerun the Signtool Command and you should see additional logging that may be insightful to your problem.
If that does not help, please share the additional logging with us to review. As with any logs or data you share, please review it before hand for any personal or sensitive information that you would not want to share in a public forum.
Thanks!
James
Jul 14 2020 11:44 PM
@Sri-Boddupalli you can try it with the pfx file, maybe it helps;
SignTool.exe sign /fd SHA256 /a /f devcert.pfx /p <pwd> ./abc.msix
Jul 15 2020 03:33 PM
Thank you guys for your valuable suggestions, appreciate your time on this. This is a repeated post
1) Change the Path to Signtool Location below
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64
2) Sign the Package using this command
.\signtool.exe sign /v /sm /s My /n "ABC Corporation" /fd SHA256 /t http://timestamp.digicert.com "<FileLocation>\File.msix"
It was so frustrating to fight with AD team on getting the .PFX file with Password. I understand their security concerns but without that we are pretty much helpless. @John Vintzel @Sharla Akers Any better explanation I can come up with, if our AD team ask why exactly we need .PFX file instead of installing the certificate in cert store and using that? OR if you could develop a Signtool GUI utility that would be wonderful
Nov 08 2023 11:59 AM
Error:-
Done Adding Additional Store
Sign Tool Error: This file format cannot be signed because it is not recognized.
Sign Tool Error: An error occurred while attempting to sign: C:\Users\abc878-a\Desktop\SalesforceCLI.msix
Tried to uninstall the windows SDK but no luck.
Via Sign in tool able to sign the .exe and MSI package but when trying to sign the MSIX package getting above error.
Also, when i tried to sign the package via MSIX Hero it works fine.
Could you please guide me how to fix the issue?