加入收藏 | 设为首页 | 会员中心 | 我要投稿 江门站长网 (https://www.0750zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

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

发布时间:2020-12-24 16:13:53 所属栏目:Windows 来源:网络整理
导读:有谁知道如何配置IIS Express以要求客户端证书进行访问? 我正在尝试调试使用客户端证书进行身份验证的有问题的ASP.NET应用程序. 使用IIS管理器工具并按照Microsoft文档 IIS Client Certificate Mapping Authentication iisClientCertificateMappingAuthen

有谁知道如何配置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>

(编辑:江门站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!