Don't create dev certificate when using Azure trusted signing#27
Open
daniel-weisse wants to merge 1 commit into
Open
Don't create dev certificate when using Azure trusted signing#27daniel-weisse wants to merge 1 commit into
daniel-weisse wants to merge 1 commit into
Conversation
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
WesUnwin
approved these changes
Mar 22, 2026
WesUnwin
left a comment
There was a problem hiding this comment.
Awesome fix, have experienced the same issue locally I had to make the same modification to this lib in my node_modules/electron-windows-msix to work around this, I have tested this exact fix and confirmed it works + makes sense.
If createDevCert remains true when using Azure not only does it undesirably create a dev cert (real cert is sourced from the certificate profile in azure) but it results in params being passed in to signtool.exe that conflict with dlib/dmdf (such as the /p pfx password option).
This PR fixes a bug that is an absolute blocker to using this lib with MS azure signing.
|
Just saw the other PR: #28 That PR might be the more general fix |
This was referenced Mar 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Azure artifact signing uses a dll and json config file to retrieve the certificates required to sign artifacts with
signtool.exe.The configuration is passed to
signtool.exeusing the/dliband/dmdfflags.No certificate is explicitly passed using the
/fflag.The MSIX packager however automatically generates a dev certificate if none is provided and adds it to the arguments for
signtool.exe, effectively blocking artifact signing.This PR changes the dev cert creation behavior by simply not creating one if the parameters for
signtool.execontains the/dlibflagFixes #24