WCF服务Endpoint X509证书标识

时间:2014-02-13 14:15:32

标签: c# wcf ssl wcf-security

我在一台机器上有服务,我想从另一台机器上访问。 所以我需要帮助设置端点的身份,因为我正在

The identity check failed for the outgoing message. The expected identity is 'identity(http://schemas.xmlsoap.org/ws/2005/05/identity/right/possessproperty:http://schemas.xmlsoap.org/ws/2005/05/identity/claims/thumbprint)' (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/thumbprint%29%27) for the 'net.tcp:...' target endpoint.

我的服务配置为使用证书进行传输安全性,验证模式设置为ChainTrust。

我应该在此服务的客户端上设置什么类型的身份,因为我使用托管它的计算机的IP地址而不是DNS名称来访问服务? 更确切地说,当我设置服务主机时,我应该将EndpointIdentity设置设置为EndpointAddress,以及在设置EndpointAddress时我应该在客户端上使用什么?

在客户端和服务机器上,用于保护传输的证书的颁发者都在受信任的权限中。

0 个答案:

没有答案