Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to verify Package Signature when using Nuget.Packaging on .Net Framework

$
0
0

I am consuming Nuget.Packaging library from a component targeting .Net Framework 4.7.1. I notice that the methods that works on .Net 6/7 do not work the same way. I can see that I can open the signature file stream. Is there a way to use the Primary Signature and/or other way to validate the signature or get the signature content details. I need to validate the subject and issuer details to validate right source of the package.

var s = SignedPackageArchiveUtility.OpenPackageSignatureFileStream(new BinaryReader(File.OpenRead("Signed.nupkg")));

// ...


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>