Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Security.Cryptography.X509Certificates;
- class CertificateStoreSample
- {
- static void Main(string[] args)
- {
- X509Store store = new X509Store(StoreName.Root);
- store.Open(OpenFlags.ReadOnly);
- foreach (X509Certificate certificate in store.Certificates)
- {
- Console.WriteLine(certificate.Subject);
- }
- store.Close();
- }
- }
Add Comment
Please, Sign In to add comment