AzureSignTool
AzureSignTool copied to clipboard
AzureSignTool incorrectly detect unsigned files as signed
sometimes AzureSignTool incorrectly detects unsigned file as signed and skips such file from signing. The issue appears under the following conditions:
-
-sswitch is used - file being signed contains a certificate, PKCS7 (signed or unsigned) bag as a content, embedded resource, etc
- embedded certificate contains
Code SigningEKU
The root cause is because the X509Certificate.FromSignedFile .NET API is flawed and description is misleading. More details in my blog post about this particular issue: https://www.pkisolutions.com/blog/azuresigntool-incorrectly-identifies-unsigned-files-as-signed/