简体   繁体   中英

C# SOAP Client use TLS instead of SSL 3.0

I have a C# application which is using Travelport Universal API interfaces through SOAP communication. In C# I used the wsdls for generating the SOAP client.

I have this config settings for HTTPS connection (this was generated by Visual Studio from WSDL):

<system.serviceModel>
<bindings>
    <basicHttpsBinding>
        <binding name="AirLowFareSearchBinding" maxBufferSize="2097152" maxReceivedMessageSize="2097152">
            <security mode="Transport">
                <transport clientCredentialType="Basic" />
            </security>
        </binding>
    </basicHttpsBinding>
</bindings>
<client>
    <endpoint address="https://emea.universal-api.travelport.com/B2BGateway/connect/uAPI/AirService" binding="basicHttpsBinding" bindingConfiguration="AirLowFareSearchBinding" contract="AirServiceReference.AirLowFareSearchPortType" name="AirLowFareSearchPort" />
</client>

About this SSL3.0 vulnerability Travelport want to disabling SSL3, and I could use just over TLS. My question is what should I change on this config, or should I change anything for TLS connection on https instead of SSL3.

In you code before calling to the service:

system.Net.ServicePointManager.SecurityProtocol=SecurityProtocolType.Tls12;

Here is a blog post Here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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