开发者

How do you bypass TLS/SSL cetification validation in WCF for Exchange Web Services

I wan't to bypass SSL and use regular http protocol to connect to a Exchange 2007 server however we dont want to invest in a real SSL cert and the one we use is needed for blackberry enterprise server. Is there a way to bypass this here is the 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, ShacxEwsUse开发者_Python百科rDomain);
        Service.Url = new Uri(ShacxEwsServiceUrl);

How do you make ExchangeService accept bad ssl.


Here is a http://foodforcode.com/how-to-bypass-ssl-validation-for-exchange-webservices-managed-api about how I got around to do it real simple...


It's difficult to diagnose without knowing more about your scenario, but you might want to experiment with the following setting that can be used in client config to bypass the certificate validation process:

        <serviceCertificate>
          <authentication certificateValidationMode="None"
                          revocationMode="NoCheck" />
        </serviceCertificate>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜