vcsjones / AzureSignTool

SignTool Library and Azure Key Vault Support
MIT License
272 stars 85 forks source link

[Feature] Add Debug Option #165

Open dansiegel opened 2 years ago

dansiegel commented 2 years ago

Description

Currently the sign tool has a verbose option which prints some additional information but it still doesn't quite tell you enough at times to diagnose what the fix is. For instance let's say that my appxmanifest looks has an identity defined like:

<Identity Publisher="CN=My Org" />

I might get an error like: The Publisher Identity in the AppxManifest.xml does not match the subject on the certificate.. This tells me what the problem is, but not necessary what the correct fix is. It would be great if I could either just pass a debug option or have additional output in in the verbose logs to tell me that the issue is that it expected:

CN=My Org, O=My Org, L=My City, S=MyState, C=US

This would really help speed up the dev loop as I could quickly identify both the problem and solution rather than having to go figure out what the fully qualified identity should be.