有谁知道如何配置IIS Express以要求客户端证书进行访问?
我正在尝试调试使用客户端证书进行身份验证的有问题的ASP.NET应用程序.
我正在尝试调试使用客户端证书进行身份验证的有问题的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>