Skip to content

How can I use my custom signer instead of using StoreType.unspecified? #1742

Answered by se
se asked this question in Q&A
Discussion options

You must be logged in to vote

I also want to share how I signing files with Azure Trusted Signing (which many people have asked in different repos - including this one).

I'm using a Powershell Module named TrustedSigning which is here: https://www.powershellgallery.com/packages/TrustedSigning.

I have my C# class included below for invoking this Powershell Scripts Sign-File.ps1 and Sign-Engine.ps1.

MSCustomSigner.cs

using System;
using WixSharp;

internal class MSCustomSigner : DigitalSignature
{
	public bool IsEngine { get; set; }

	public override int Apply(string fileToSign)
	{
#if DEBUG
		// I'm not signing my files if it is a Development Build.
		return 0;
#endif
		var signerPowershellFile = IsEngine ? "Sign-Engin…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@oleg-shilo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by se
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants