Example #1
0
 public static X509Certificate2 FindCertificate(X509Certificate2[] certificates, string thumbprint)
 {
     X509Certificate2 result = null;
     result = certificates.FirstOrDefault(cert => String.Compare(cert.Thumbprint, thumbprint, StringComparison.InvariantCultureIgnoreCase) == 0);
     return result;
 }