windows – 如何配置IIS Express以请求客户端证书

前端之家收集整理的这篇文章主要介绍了windows – 如何配置IIS Express以请求客户端证书前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有谁知道如何配置IIS Express以要求客户端证书进行访问?
我正在尝试调试使用客户端证书进行身份验证的有问题的ASP.NET应用程序.
使用IIS管理器工具并按照Microsoft文档 IIS Client Certificate Mapping Authentication <iisClientCertificateMappingAuthentication>.

示例配置:

<location path="Default Web Site">
   <system.webServer>
      <security>
         <authentication>
            <windowsAuthentication enabled="false" />
            <anonymousAuthentication enabled="false" />
            <digestAuthentication enabled="false" />
            <basicAuthentication enabled="false" />
            <iisClientCertificateMappingAuthentication enabled="true"
                  manyToOneCertificateMappingsEnabled="true">
               <manyToOneMappings>
                  <add name="Contoso Employees"
                        enabled="true"
                        permissionMode="Allow"
                        userName="Username"
                        password="[enc:AesProvider:57686f6120447564652c2049495320526f636b73:enc]">
                     <rules>
                        <add certificateField="Subject"
                           certificateSubField="O"
                           matchCriteria="Contoso"
                           compareCaseSensitive="true" />
                     </rules>
                  </add>
               </manyToOneMappings>
            </iisClientCertificateMappingAuthentication>
         </authentication>
         <access sslFlags="Ssl,SslNegotiateCert" />
      </security>
   </system.webServer>
</location>
原文链接:https://www.f2er.com/windows/369359.html

猜你在找的Windows相关文章