Skip to content

[Bug]: Sign failed with certificate #567

@taozuhong

Description

@taozuhong

Describe the bug

winapp cert generate --publisher "CN=Taozuhong, L=Shenzhen, S=Guangdong, C=CN" --output SelfSign.pfx --password LoveHome --if-exists Overwrite --export-cer

❌ Failed to create MSIX package: Publisher in D:\Github\kangaroo\build\package\appxmanifest.xml (CN=Taozuhong, L=Shenzhen, S=Guangdong, C=CN) does not match the publisher in the certificate D:\Github\kangaroo\tools\winstore\SelfSign.pfx (CN=Taozuhong).

To Reproduce

  1. Generate certificate file
    winapp cert generate --publisher "CN=Taozuhong, L=Shenzhen, S=Guangdong, C=CN" --output SelfSign.pfx --password LoveHome --if-exists Overwrite --export-cer

  2. Make package and sign the package
    winapp package package --exe bin\kangaroo.cmd --output %PKG_NAME%.appx --cert %PFX_NAME% --cert-password %PASSWORD% >NUL

  3. Error outputed.

❌ Failed to create MSIX package: Publisher in D:\Github\kangaroo\build\package\appxmanifest.xml (CN=Taozuhong, L=Shenzhen, S=Guangdong, C=CN) does not match the publisher in the certificate D:\Github\kangaroo\tools\winstore\SelfSign.pfx (CN=Taozuhong).
  1. Regenerate the certificate file with the same publisher and sign the package, throw error again
"CMD.exe: Make Windows Store package and add digital signature......"
[ERROR] - Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)

[ERROR] - SignTool Error: An unexpected internal error has occurred.

❌ Failed to create MSIX package: signtool.exe execution failed with exit code 1

Expected behavior

Math the publisher and sign the MSIX package

Screenshots

No response

OS Version and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions