Authentication 信号器无法使用证书进行身份验证
我想使用证书对我的信号器客户端进行身份验证 在客户端,我有:Authentication 信号器无法使用证书进行身份验证,authentication,certificate,signalr,Authentication,Certificate,Signalr,我想使用证书对我的信号器客户端进行身份验证 在客户端,我有: Connection = new HubConnection(ServerUri); var certificate = new X509Certificate2(path); Connection.AddClientCertificate(certificate); HubProxy = Connection.CreateHubProxy("MyHub"); 我还尝试使用私钥创建证书: var certificate = new
Connection = new HubConnection(ServerUri);
var certificate = new X509Certificate2(path);
Connection.AddClientCertificate(certificate);
HubProxy = Connection.CreateHubProxy("MyHub");
我还尝试使用私钥创建证书:
var certificate = new X509Certificate2(path, "...");
在服务器上,我有以下配置:
<location path="signalr">
<system.webServer>
<security>
<access sslFlags="SslNegotiateCert" />
</security>
</system.webServer>
</location>
第一个问题是path=“signal”。当我使用此选项时,客户端无法连接到服务器,我得到:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data
for the page is invalid.
我尝试了:path=“~”,path=“signalr/content”,path=“signalr/send”,没有错误,但服务器上的客户端证书总是空的
任何帮助都将不胜感激。我遇到了类似的问题,有人找到了解决方案吗?有解决方案吗?你找到答案了吗?我也面临同样的问题
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data
for the page is invalid.