我正在尝试配置一个简单的网站以要求 IISExpress 上的客户端证书。
我的配置是根据这个存档jasonrshaver.com邮政。
<site name="XXXX" id="3">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="XXXX" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:65360:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
</bindings>
</site>
...
<access sslFlags="Ssl, SslNegotiateCert" />
...
<iisClientCertificateMappingAuthentication enabled="true">
</iisClientCertificateMappingAuthentication>
它是一个简单的 MVC4 Web 应用程序,用于输出 ClientCertificate 数据。问题是当我浏览到 https 时,我没有在浏览器中提示输入证书。我确实有 4 个可以使用的证书;它们在 Chrome 中配置
任何帮助表示赞赏。
谢谢你。
最佳答案
存在证书问题,而不是 IISExpress 配置问题。
我没有可用于客户端身份验证的证书。
安装具有预期用途的证书后,一切正常。
所以上面的配置工作得很好。
关于certificate - IISExpress ClientCertificate 设置步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14752386/