How to find certificate by its thumbprint in C#

后端 未结 7 726
你的背包
你的背包 2020-11-30 23:10

I am using this code to find the certificate by its thumbprint. certificate exists in certificate manager in personal certificate store but this code is not finding that cer

相关标签:
7条回答
  • 2020-12-01 00:11

    I was able to resolve issue by writing a console application that retrieve all certs on certificate and output the thumbprint id. I copied the console output and inserted the thumbprint exactly. No issues. Seems like copying from the MMC console causes issues even though the data looks similar. I used this site as starting point to reading all certificates.

    https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2.thumbprint(v=vs.110).aspx

    0 讨论(0)
提交回复
热议问题