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

Posted by Sevki on Stack Overflow See other posts from Stack Overflow or by Sevki
Published on 2010-04-06T14:23:14Z Indexed on 2010/04/09 5:43 UTC
Read the original article Hit count: 1112

Filed under:
|
|
|

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, ShacxEwsUserDomain);
        Service.Url = new Uri(ShacxEwsServiceUrl);

How do you make ExchangeService accept bad ssl.

© Stack Overflow or respective owner

Related posts about wcf

Related posts about exchangewebservices