I want to find a certificate from my store, but using the following code, I could not get the certificate. It always returns null.

What is wrong with my code?
Update:
I copied my certificate fingerprint by examining the repository object and comparing it with my fingerprint string and returning false! I think that the problem of interpreting a string in the VS2010 IDE or the problem with copy paste can be seen below in Fig. because of this, it must ignore the certificate from the list. Has anyone encountered this type of problem before?

source
share