Use the X09Certificate class to get the certificate from the expected
signed file and sniff for expected properties of the certificate. The
following code snippet provides a quick example.
// Do the properties of the certificate match what you
are looking for,
// such as the certificate.Issuer or
certificate.Subject
if (certificate.Subject.Contains("whatever text you
are looking ofr"))
{
return true;
}
else
{
return false;
}
}
catch (Exception ex)
{
// Handle the failure of getting the certificate
here. More than likely, the exception
// was caused because the file does not have an
Authenticode signature.
return false;
Use the X09Certificate class to get the certificate from the expected
signed file and sniff for expected properties of the certificate. The
following code snippet provides a quick example.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.