我们正在迁移使用TCP绑定到Docker的WCF自助服务。该服务将位于负载均衡器后面。
我们将在AWS上使用带有证书的负载均衡器。
当前的客户端和服务器绑定如下:
public static Binding SharedBinding()
{
var binding = new NetTcpBinding(SecurityMode.Transport)
{
MaxReceivedMessageSize = int.MaxValue,
ReaderQuotas =
{
MaxStringContentLength = int.MaxValue,
MaxDepth = int.MaxValue,
MaxArrayLength = int.MaxValue
},
ReceiveTimeout = TimeSpan.MaxValue,
SendTimeout = TimeSpan.MaxValue,
MaxConnections = 10000,
ListenBacklog = 10000,
};
binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.None;
binding.Security.Message.ClientCredentialType = MessageCredentialType.None;
binding.Security.Transport.ProtectionLevel = ProtectionLevel.EncryptAndSign;
return binding;
}
client->(tcp,TLS,端口5500)->负载均衡器->(不带TLS的tcp)-> Docker WCF服务?
要在不使用docker映像上的证书的情况下使WCF服务正常工作,我们需要做些什么更改