2

I am using following code to find certificates in personal store. It finds the certificate on first page load but after postback it doen't find the same certificate.

X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
Teoman Soygul
  • 25,584
  • 6
  • 69
  • 80
user228777
  • 3,082
  • 9
  • 33
  • 50
  • Look here: http://stackoverflow.com/questions/1205295/get-list-of-certificates-from-the-certificate-store-in-c/6830696#6830696 – Cobaia Jul 26 '11 at 13:40
  • This code is incomplete -- all it does is open the store (which should be .Close(d) when done) – Joe Oct 05 '11 at 16:24

0 Answers0