I made an application (in C#) connecting to Azure Service Bus Relay and it works well. However using WireShark I found out that both the server and client side use encryption with TLS 1.0 which is supposed to be degraded now. How can I force it to use TLS 1.1 or TLS 1.2? Is there a parameter that I can set to specify TLS version?
part of App.config below:
<services> <service name="GatewayServer.GatewayService"> <endpoint address="sb://myowntest.servicebus.windows.net" binding="netTcpRelayBinding" contract="GatewayServer.IGateway" behaviorConfiguration="gateway"/> </service> </services> <behaviors> <endpointBehaviors> <behavior name="gateway"> <transportClientEndpointBehavior> <tokenProvider> <sharedAccessSignature keyName="RootManageSharedAccessKey" key="myveryownkey=" /> </tokenProvider> </transportClientEndpointBehavior> </behavior> </endpointBehaviors> </behaviors>
part of the code to start the host:
ServiceHost sh = null;
sh = new ServiceHost(typeof(GatewayService));
sh.Open();