C# 配置Nancy以管理客户端证书

C# 配置Nancy以管理客户端证书,c#,authentication,ssl,nancy,C#,Authentication,Ssl,Nancy,配置Nancy服务器以管理客户端证书时遇到问题。事实上,web浏览器要求客户端认证,但页面由Nancy提供,即使我按下“取消”键,并且我没有选择任何证书 我的代码: var hostConf = new HostConfiguration() { EnableClientCertificates = true, UnhandledExceptionCallback = e => { var message = String.Format("---\n

配置Nancy服务器以管理客户端证书时遇到问题。事实上,web浏览器要求客户端认证,但页面由Nancy提供,即使我按下“取消”键,并且我没有选择任何证书

我的代码:

var hostConf = new HostConfiguration()
{
    EnableClientCertificates = true,
    UnhandledExceptionCallback = e =>
    {
        var message = String.Format("---\n{0}\n---\n", e);
        Console.WriteLine(message);
    },
    UrlReservations = new UrlReservations() { CreateAutomatically = true}
};

host = new NancyHost(hostConf, new Uri(httpsServiceHost));
另外,我不知道
EnableClientCertificates
字段与
clientcertnegotiation=enabled
from
netsh http add sslcert之间的关系。。。clientcertnegotiation=已启用

谁能帮帮我吗