我试图配置一个简单的网站,以要求IISExpress上的客户端证书.
我的配置是根据http://www.jasonrshaver.com/?tag=/IIS+Express
<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>
Run Code Online (Sandbox Code Playgroud)
它是一个简单的MVC4 Web App,可输出ClientCertificate数据.
问题是,当我浏览到https时,我不会在浏览器中提示我输入证书.我有4个可以使用的证书; 它们是在Chrome中配置的
任何帮助赞赏.谢谢.
我有一组文件:
"_id" : ObjectId("500d1aa9cf6640c15214fc30"),
"Title" : "Title0",
"Description" : "Description0",
"Keywords" : ["Keyword000", "Keyword001", "Keyword002", "Keyword003", "Keyword004", "Keyword005", "Keyword006", "Keyword007", "Keyword008", "Keyword009"],
"Category" : 0
Run Code Online (Sandbox Code Playgroud)
我想查询具有一个关键字的项目:
var query = Query.ElemMatch("Keywords", Query.EQ(XXX, "Keyword003"));
Run Code Online (Sandbox Code Playgroud)
我不知道在Query.EQ上查询什么.
通过将示例转换为:
"_id" : ObjectId("500d4393cf6640c152152354"),
"Title" : "Title0",
"Description" : "Description0",
"Keywords" : [{
"Value" : "Keyword000"
}, {
"Value" : "Keyword001"
}],
"Category" : 0
Run Code Online (Sandbox Code Playgroud)
并查询
var query = Query.ElemMatch("Keywords", Query.EQ("Value", "Keyword001"));
Run Code Online (Sandbox Code Playgroud)
得到结果我没有问题.
谢谢.