How to sign a UWP app with an EV Code Signing Certificate

Gavam Atarix Ltd 6 Reputation points
2022-12-13T10:42:07.777+00:00

Hello,

We have a UWP app that we want to distribute through side loading. In order to distribute it without a self signed certificate, we went ahead and bought an EV code signing certificate.

We cannot export the EV code signing certificate as a .pfx file and attach it to the UWP package manifest. Therefore, how can we sign our app? Should we sign the .appinstaller file through the signtool and that would be it?

Plus, we have already registered to the Hardware Developer Program where we signed a file and uploaded it the partner center and I don't know how that would help other than in the Microsoft Store.

Let me know what you think, we would really appreciate the help.

Regards,
Majid
Developer at
Gavam Atarix Ltd

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Gavam Atarix Ltd 6 Reputation points
    2023-01-01T00:25:30.313+00:00

    We have successfully solved our issue and signed our UWP app package with an EV code signing certificate.

    If you are looking to sign your UWP package or any other Windows 10 package, here are the steps to achieve that:

    1. Make sure the subject name of the signing certificate matches the Publisher attribute of the Identity element in the Package.appxmanifest. Take a look here: how-to-create-a-package-signing-certificate
    2. Create app package and select skip package signing.
    3. Go to the package file (whether it is a .msix or .msixbundle file) and use the signtool to sign the package.

    The cause of the "Error: SignerSign() failed." (-2147024885/0x8007000b) issue we had is that the subject name of our signing certificate did not match the Publisher attribute of the Identity element in the Package.appxmanifest file. We went ahead and changed it to the correct value.

    Special thanks to @Junjie Zhu - MSFT and @Roy Li - MSFT for helping.

    1 person found this answer helpful.