Hi,

I am trying to read from the user security certificate with the
HttpClientCertificate class. I inserted my CAC card and trying to read
the subject string, but it empty. I am positive my CAC is working. I
wrote the following test code to read my cert

HttpClientCertificate cert =
System.Web.HttpContext.Current.Request.ClientCertificate;
                string[] subjectArray = cert.Subject.Split(',');

                //Holds the entire contents of the subject line.
                string entireSubjectLine = cert.Subject.ToString();


I am assuming that my CAC information is in the cert, correct? I
should be able to get all information from the subject line. I added
the code in my test asp.net project and inserted in the PAGE_LOAD
method of the default.aspx.cs file.

What am I missing or doing wrong?

Any help is greatly appreciated,

Thanks

Reply via email to