//Get certificate data
HttpClientCertificate cs = Request.ClientCertificate;
string entireSubjectLine = cs.Subject.ToString();
“C=US, O=U.S. Government, OU=OGC, OU=PKI, OU=CONTRACTOR, CN=LastName.FirstName.MI.1234567890”
You should then be able to parse through the “entireSubjectLine” variable to retrieve the data you want to use in your code. The last number in the “entireSubjectLine” string (1234567890) will be the CAC number which is unique for every CAC.
That was simple. Happy Coding!