Geekpedia Forums Logo

SSL Certificate info

by Paul van Brouwershave on Tuesday, September 19th - 4:31 PM



How do I request information about a SSL Certificate when connecting to a remote webserver with HttpWebRequest in C#?

Hello,

Please have a look over the ICertificatePolicy Interface, if you need to check wether or not a SSL certificate is valid:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemneticertificatepolicyclasstopic.asp

So far I can see it's not possible to request information from the certificate like:

CN = msdn2.microsoft.com
OU = MSCOM OPS
O = MICROSOFT
L = Redmond
S = Washington
C = US

Valid from: 29-8-2006
Valid till: 29-8-2007