Edit: this question is not just about reading cert or thumbprint, also to validate my assumption. We've a requirement to limit access to some of resources in our program(SDK) to only to executable that is signed by our cert.
Assumption: Verifying thumbprint of external executable's against our cert's could solve our purpose because no one can spoof our cert with same thumbprint.
Is there way to read thumbprint of external exe's thumbprint in C# ? I donot find APIs in msdn, looking for alternate way. If i'm wrong with my assumption, please correct me.
Thanks in advance.
You can use X509Certificate.CreateFromSignedFile
constructor to retrieve signing certificate from a signed file. More information: https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate.createfromsignedfile(v=vs.110).aspx