May 17 2022 07:03 AM
I am unable to sign code from signtool.exe using a hardware key provider with this error:
.\signtool.exe sign /fd SHA256 /t http://timestamp.entrust.net/rfc3161ts2 "c:\code\notepad_x64.msix"
Done Adding Additional Store
SignTool Error: This file format cannot be signed because it is not recognized.
SignTool Error: An error occurred while attempting to sign: c:\code\notepad_x64.msix
Number of errors: 1
Why do MSIX files do not sign?
May 18 2022 06:50 AM
May 18 2022 06:57 AM
@Bogdan Mitrache - I am using the Windows 11 SDK, the latest version - Same error
May 19 2022 11:13 AM
May 19 2022 12:27 PM
@mridulgupta Checked that file and its SHA256
HashMethod="http://www.w3.org/2001/04/xmlenc#sha256
Exactly the same hash algorithm as the command used in Signtool so its not that?
May 26 2022 11:23 AM
@leecroucher Please check the version of the sign tool and the subject of the certificate, if that matches to the publisher in the manifest. If it doesn't match, use this script to sign the package.
Jun 01 2022 10:21 PM
Jun 02 2022 03:23 AM
SolutionJun 02 2022 03:23 AM
Solution