.net - 如何在 WCF for Exchange Web Services 中绕过 TLS/SSL 认证验证

标签 .net wcf soap exchangewebservices

我不想绕过 SSL 并使用常规 http 协议(protocol)连接到 Exchange 2007 服务器,但是我们不想投资真正的 SSL 证书,而我们使用的证书是黑莓企业服务器所需要的。有没有办法绕过这个 这是异常(exception)

Request failed. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Service.Credentials = new WebCredentials(ShacxEwsUserName, ShacxEwsUserPassword, ShacxEwsUserDomain);
        Service.Url = new Uri(ShacxEwsServiceUrl);

如何让 ExchangeService 接受错误的 ssl。

最佳答案

这是一个http://foodforcode.com/how-to-bypass-ssl-validation-for-exchange-webservices-managed-api关于我如何做到这一点非常简单......

关于.net - 如何在 WCF for Exchange Web Services 中绕过 TLS/SSL 认证验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2585512/

相关文章:

c# - 警告 CS0618 : 'IPAddress.Address' is obsolete: 'This property has been deprecated

.net - 当传递超过 50kb byte[] 时,WCF Web 服务操作会引发异常

soap - 迁移到 Jakarta : ClassNotFoundException: com. sun.xml.internal.ws.spi.ProviderImpl

java - 在 org.apache.cxf.binding.soap.SoapMessage 中获取 SOAP 体中的特定字段

c# - 是否可以在编译时填充查找表? C#

.net - Wix 不会卸载 IIS Web 应用程序

c# - 在 Windows 中检查 OSX (.dmg) 文件的数字签名

iPhone 应用程序因 Mprotect 失败错误而崩溃 (MonoTouch)

WCF 服务错误 413 实体太大

linux - 在 ubuntu 10.04 上将 php 降级到 5.2 后,Pear 下载软件包而不是安装