I have an ASP.NET webpage that reads a user's CAC card. When publishing to a test server, it works fine; however, in my local development environment with IIS Express I get empty strings when using Request.ServerVariables("CERT_SUBJECT"). I AM able to retrieve the "LOGON_USER" variable, but the "CERT_*" are all empty strings.
Currently my project settings contain
Anonymous Authentication = false
Windows Authentication = true
SSL Enabled = true // Created the default IIS express cert. Have also tried false with no luck
In addition, I have also attempted to modify the applicationhost.config like so
<security>
<access sslFlags="SslRequireCert"> <!-- originally none -->
</security>
<authentication>
<anonymousAuthentication enabled="false" userName="" /> <!--originally true-->
<basicAuthentication enabled="false" />
<clientCertificateMappingAuthentication enabled="false" />
<digestAuthentication enabled="false" />
<iisClientCertificateMappingAuthentication enabled="true"> <!--originally false-->
</iisClientCertificateMappingAuthentication>
<windowsAuthentication enabled="true"> <!--originally false-->
<providers>
<add value="Negotiate" />
<add value="NTLM" />
</providers>
</windowsAuthentication>
</authentication>
Any thoughts on further configurations I need to make to allow my development environment to see these variables during debugging? Thanks.