how can I get Expiration Date of Certificate by C# code? I need to get data about certificate in internet Option (-> content -> certificates);
+3
A:
Use X509Store class to access certificates in Windows Certificate Storages. Then check NotAfter property of the certificate of your choice, accesible via X509Certificate2 class.
Help topic for X509Store class contains the sample how to enumerate certificates and read their properties.
Eugene Mayevski 'EldoS Corp
2010-07-11 15:06:55