You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ArgumentNullException thrown viewing Authenticode signed assembly in NuGet package #1633
OS version: Windows 11, Version 22H2 (OS Build 22621.2428)
Installed from: Microsoft Store
In case of a BUG:
While trying to publish a new release of Polly today, we encountered a failure when trying to validate the Authenticode signatures of the binaries in our NuGet packages. We do this by compiling AuthenticodeLint from source as the .NET 6 version is not available from NuGet.org (see vcsjones/AuthenticodeLint#34). There was no apparent feedback on what was wrong, just that the tool was failing to verify the signatures. See App-vNext/Polly#1760 for more context.
As part of investigating the issue, attempting to view the binaries inside the NuGet packages that were signed, NuGet Package Explorer fails to load the details for the DLLs, and instead shows this modal:
This error seems to correlate with the same exception I uncovered in AuthenticodeLint/AuthenticodeExaminer: vcsjones/AuthenticodeExaminer#19
Unpacking the NuGet package files shows the Authenticode signatures as valid in Windows Explorer, and rebuilding AuthenticodeLint as described in the issue above also then successfully validates the files (successful validation workflow).
I'm not aware of any workarounds to this issue - I expect that a dependency of some kind needs updating and the application recompiled and published for a new version to resolve the underlying code that has an issue with the signatures.
Looking at the diff, it's not a dependency update that fixes it, but what looks like a bunch of code changes that have happened since v0.3.0 was released.
If @vcsjones isn't publishing any new versions of AuthenticodeExaminer, would NPE update its dependency to a forked version (if one were published to NuGet)?
Activity
martincostello commentedon Oct 31, 2023
I didn't realise that you depended on AuthenticodeExaminer, so I guess this is just the exact same issue as vcsjones/AuthenticodeExaminer#19:
NuGetPackageExplorer/PackageViewModel/PackageViewModel.csproj
Line 13 in c06b7b6
I'm going to see if I can force a package update locally that updates the transient dependency and fixes the issue here.
martincostello commentedon Oct 31, 2023
Looking at the diff, it's not a dependency update that fixes it, but what looks like a bunch of code changes that have happened since v0.3.0 was released.
bgrainger commentedon Feb 6, 2025
I just encountered the same problem. Call stack of NuGet Package Explorer:
If @vcsjones isn't publishing any new versions of AuthenticodeExaminer, would NPE update its dependency to a forked version (if one were published to NuGet)?
vcsjones commentedon Feb 7, 2025
Sorry for forgetting about this. I will get a fixed version out over the weekend.
clairernovotny commentedon Mar 5, 2025
@vcsjones any update on this?
vcsjones commentedon Mar 14, 2025
Just published a 0.4.0 release. https://www.nuget.org/packages/AuthenticodeExaminer/0.4.0
Thanks for the patience!
martincostello commentedon Mar 14, 2025
@vcsjones Thanks! Means one step closer towards removing my fork of AuthenticodeLint 😃 vcsjones/AuthenticodeLint#36
vcsjones commentedon Mar 14, 2025
New release is pending https://www.nuget.org/packages/AuthenticodeLint/0.13.0. I also started publishing some NativeAOT binaries on the GitHub release, if you prefer to use those instead of a nuget tool.
martincostello commentedon Mar 14, 2025
@vcsjones Works great - thanks! 🙇
Update package versions and project properties