How to sign ClickOnce application manifest file with Trusted Signing from Microsoft?

Kieran Clark 0 Reputation points
2024-07-02T14:47:26.2533333+00:00

I have developed a C# app in VisualStudio and deployed it via ClickOnce. I am now trying to sign all files, including the .application manifest file, with Trusted Signing from Microsoft. However, the publisher is still displayed as "Unknown Publisher" despite signing all exe and dll files. I am using a PowerShell script to apply the Trusted Signing to my files. Can someone guide me on how to properly sign the .application manifest file using Trusted Signing? Any help or recommendations would be highly appreciated!

I am also fully willing to transition to creating a .msi installer if that would apply all the signing properly, but I'm hoping I can make ClickOnce work as it is a far more convenient deployment process.

Azure Trusted Signing
Azure Trusted Signing
Trusted Signing is a Microsoft fully managed, end-to-end signing solution that simplifies the certificate signing process and helps partner developers more easily build and distribute applications.
100 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Shweta Mathur 29,761 Reputation points Microsoft Employee
    2024-07-03T06:11:33.28+00:00

    Hi @Kieran Clark ,

    Thanks for reaching out.

    Unfortunately, as of now trusted signing for clickonce application and manifest files is not supported.

    To sign these (on the command line) you have to use mage.exe, see https://zcusa.951200.xyz/dotnet/framework/tools/mage-exe-manifest-generation-and-editing-tool )

    I would suggest you post this idea at the Azure Feedback Portal, which is monitored by the product team for feature enhancements.

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.


  2. Meha-MSFT 405 Reputation points Microsoft Employee
    2024-07-05T17:34:49.47+00:00

    @Kieran Clark Trusted Signing only supports file types supported by SignTool: https://zcusa.951200.xyz/en-us/azure/trusted-signing/faq#what-types-of-files-can-be-signed-with-trusted-signing

    So, we don't yet support ClickOnce yet, however, we do support .msi.

    Following up on your question in the comment, Trusted Signing certs and EKU are default trusted on supported Windows OS versions. As long as the file types are the ones supported by SignTool.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.