packaging/signing #15
Replies: 2 comments 1 reply
-
Can this be used with https://github.com/azure/trusted-signing-action? |
Beta Was this translation helpful? Give feedback.
-
It took me 50+ attempts to get this working so I thought I'd share my results. I have a Devops Release pipeline that does the signing via Azure Trusted Signing which is added as a Service Connection. First error was that Next error: SignTool Error: SignedCode::Sign returned error: 0x80070057 At this point I started installing my own signtool as per MS docs https://learn.microsoft.com/en-us/azure/trusted-signing/how-to-signing-integrations :
and ensuring it is the one to be used:
Next problem was authentication to Azure. Read a number of articles ( https://melatonin.dev/blog/code-signing-on-windows-with-azure-trusted-signing/ ) suggesting setting env variables like ARM_CLIENT_ID or AZURE_CLIENT_ID and others and that signtool will look for them. Could not get this to work. Until in the end I found this post https://serverfault.com/questions/1163621/signtool-exe-hangs-on-submitting-digest-for-signing-when-running-in-azure-d and moved my script into Azure CLI with Powershell and it finally started working Ensure to check
The insane backtick triple double quote is there because
The JSON manifest for Trusted Signing also had an issue. I create it within the pipeline using PS. Default implementation of UTF8 encoding in PS/.NET is with BOM. That causes an exception in the DLIB. The correct encoding (UTF8 no BOM) can be created with .NET like so:
|
Beta Was this translation helpful? Give feedback.
-
packaging/signing
Code signing is an essential part of application distribution. On Windows, applications without code signatures are likely to be flagged as viruses. On OSX, codesigning and Notarization is required before your application can be run by users.
https://docs.velopack.io/packaging/signing
Beta Was this translation helpful? Give feedback.
All reactions