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
I did the following to remove the extra character, and also to remove anything else that's not valid hexadecimal (and ToUpper it):
thumbprint = Regex.Replace(thumbprint.ToUpper(), @"[^0-9A-F]+", string.Empty);
This allowed me to copy the thumbprint straight from the cert manager dialog and paste it straight into my usage.