繁体   English   中英

wcf服务服务器和客户端证书与SSl证书不同时的安全异常

[英]Security exception when wcf service server and client certificate is different than SSl certificate

我是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. 

SS1证书和WCF证书来自不同的证书颁发机构。

为什么会引发安全异常?

客户端和服务器之间的通信是如何进行的,正在使用哪些证书? 我真的很困惑。 任何帮助将不胜感激。

MakeCert工具会创建默认情况下不受信任的自签名证书,因为没有来自证书颁发机构的签名来证明证书信息的合法性。

当您的客户端连接时,除非禁用证书验证或您推出自己的检查方案,否则使用典型的验证过程将失败。 也就是说,根证书颁发机构不通过证书信任链信任您的证书。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM