M
Mitchel Anderson
Guest
My mission is to add Cac reading functionality to an existing ASP.NET MVC application. When the user visits the site their cac should be read. I have not been able to test and approve whether the lines of code I have work in my development environment. I have a cac reader that seems to be functioning properly and a card to use. I do not however know enough about the subject to know if I need to set up my app in IIS and set SSL?
cacid = System.Web.HttpContext.Current.Request.ClientCertificate["SubjectCN"].ToString();
var cert = System.Web.HttpContext.Current.Request.ClientCertificate;
The cacid (string) remains empty and the cert comes back as an empty cert.
I may not know enough about this to even ask the right questions, but...
How do I test this code to ensure that it's working properly? Do I need ActivClient? Is there an issue with the IIS SSL settings?
Thanks
Continue reading...
cacid = System.Web.HttpContext.Current.Request.ClientCertificate["SubjectCN"].ToString();
var cert = System.Web.HttpContext.Current.Request.ClientCertificate;
The cacid (string) remains empty and the cert comes back as an empty cert.
I may not know enough about this to even ask the right questions, but...
How do I test this code to ensure that it's working properly? Do I need ActivClient? Is there an issue with the IIS SSL settings?
Thanks
Continue reading...