public static X509Certificate2 GetCertificateByThumbprint(string certThumbprint)
 {
     foreach (StoreLocation current in CertificateStore.defaultStoreLocationsToSearch)
     {
         X509Certificate2 certificateByThumbprint = CertificateStore.GetCertificateByThumbprint(certThumbprint, current);
         if (certificateByThumbprint != null)
         {
             return(certificateByThumbprint);
         }
     }
     return(null);
 }
 public KeyVaultWrapper(string clientId, string appCertThumbprint) : this(clientId, CertificateStore.GetCertificateByThumbprint(appCertThumbprint))
 {
 }