Hello. You need to find a specific certificate on your computer. What attribute is required to search? serialNumber as I understand it is not unique.
For search I use the code:
X509Certificate2Collection certificates; X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly); certificates = store.Certificates.Find((X509FindType)filterType, filterValue, false); store.Close();