Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF netTcpBinding Windows security EncryptAndSign

I'm using netTcpBinding with "Transport" security ("Windows" credentials & "EncryptAndSign" protection). I already know that Kerberos (after SPNEGO) is used to authenticate client & server (both machines on the same Windows domain). I'd like to know what is/are the algorythm(s) used then to encrypt and sign the TCP Transport channel since there is no config choice ("Message" security has "algorithmSuite" config parameter but it's not available for "Transport" security)

Thanks

like image 999
Patrick SOULARD Avatar asked Dec 05 '25 13:12

Patrick SOULARD


1 Answers

The NetTcpBinding class uses TCP for message transport. Security for the transport mode is provided by implementing Transport Layer Security (TLS) over TCP. The TLS implementation is provided by the operating system.

You can also specify the client's credential type by setting the ClientCredentialType property of the TcpTransportSecurity class to one of the TcpClientCredentialType values, as shown in the following code.

C#

NetTcpBinding b = new NetTcpBinding();
b.Security.Mode = SecurityMode.Transport;
b.Security.Transport.ClientCredentialType =
     TcpClientCredentialType.Certificate;

More info can be found here: http://msdn.microsoft.com/en-us/library/ms729700

Hope that helps.

like image 167
Brian Wenhold Avatar answered Dec 07 '25 17:12

Brian Wenhold



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!