Reading digital certificate from the file
问题 I signed a file using Signtool.exe and now I am trying to load the certificate attached to the file using the following method var cert = X509Certificate2.CreateFromSignedFile(filePath); but his line throws an error "Cannot find the requested object.". When I try reading the certificate from a microsoft signed dll e.g. EntityFramework.dll , it works without any problems. I thought it could be because I don't have the certificate in the Trusted Store but even after adding it there, it