【发布时间】:2014-08-25 07:43:29
【问题描述】:
我有一个公开两个绑定的 WCF 服务:BasicHttpBinding 和 NetTcpBinding。 两个绑定都使用有效的 Entrust SSL 证书进行保护。
在 HTTP 上似乎一切正常,但在 net.tcp 上出现认证验证问题。
客户端配置为使用“ChainTrust”证书验证模式。 这是 WCF 抛出的错误:
The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain could not be built to a trusted root authority.
我对 SSL 证书不是很熟悉,但我注意到证书是由中间证书颁发的。链中的所有证书都已安装在服务器上。在客户端上,根 CA 证书是受信任的,但中间证书不是。
如果我在客户端安装中间证书,一切都很好。但是,这对我来说听起来不对吗?不应该只信任根证书吗?
【问题讨论】:
标签: c# wcf ssl-certificate nettcpbinding