【发布时间】:2015-08-17 07:21:23
【问题描述】:
我是 WCF 新手,很难理解证书身份验证和加密。
我有一个使用 clientcredentialtype="Certificate" 的 WCF 服务。
我已经使用 makecert 工具生成了 CA 证书、服务器和客户端证书。
服务托管在 IIS 中。
当我为我的网站使用 SSl 时,我遇到了一个安全异常:
Could not establish trust relationship for the SSL/TLS secure channel with authority 'fqdn;.
System.Net.webException: The underlying connection was closed:
Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remore
certificate is invalid according to the validation procedure.
SSl 证书和 WCF 证书来自不同的证书颁发机构。
为什么会抛出安全异常?
客户端和服务器之间的通信是如何进行的以及正在使用哪些证书?我真的很困惑。任何帮助将不胜感激。
【问题讨论】: