Access X509 Certificate store with unmanaged C++
问题 Does anyone know how I would do the equivalent of the below C# code using unmanaged C++ i.e. query a certificate from the X509 certificate store by thumbprint? var store = new X509Store(StoreName.My, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadOnly); var allCerts = store.Certificates; foreach (var certificate in from X509Certificate2 certificate in allCerts where certificate.Thumbprint != null && certificate.Thumbprint.Equals(thumbprint, StringComparison.OrdinalIgnoreCase) select