问题描述
我试图配置一个简单的网站,要求在IISExpress上提供客户端证书。
I am trying to configure a simple web site to require client certificates on IISExpress.
我的配置是根据
<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>
这是一个输出ClientCertificate数据的简单MVC4 Web应用程序。
It is a simple MVC4 Web App that outputs the ClientCertificate data.
问题是,当我浏览到https我没有提示在浏览器中的证书。我有4个证书可以使用;它们是在Chrome中配置的
The problem is that when I browse to https I am not prompted for a certificate in browser. I do have 4 certificates that can be used; they are configured in Chrome
任何帮助。
谢谢。
Any help appreciated.Thank you.
推荐答案
有一个证书问题,而不是一个IISExpress配置问题。
There was a certificate problem, not a IISExpress configuration problem.
我没有可用于客户端身份验证的证书。
在安装了一个用于目的的证书后,一切工作都很好。
I had no certificates that could be used for client authentication.After installing a certificate with Intended Purposes everything worked fine.
所以上面的配置很好。
这篇关于IISExpress ClientCertificate安装步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!