How did you bypass WCF TLS / SSL validation for Exchange Web Services

I can’t bypass SSL and use the usual HTTP protocol to connect to the Exchange 2007 server, however we don’t want to invest in a real SSL certificate, and the one we use is necessary for the BlackBerry Enterprise server. Is there any way around this here there is an exception

Request failed. The main connection was closed: Failed to establish trust for the SSL / TLS secure channel.

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

How to make ExchangeService accept bad ssl.

+3
source share
2 answers

, , , , :

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

Source: https://habr.com/ru/post/1740005/


All Articles