2012-01-05 69 views
3

我正在使用netTcpBinding和「傳輸」安全性(「Windows」憑據&「EncryptAndSign」保護)。 我已經知道Kerberos(在SPNEGO之後)用於認證客戶端&服務器(兩臺機器都在同一個Windows域中)。 我想知道什麼是algorythm(s)使用然後加密和簽名的TCP傳輸通道,因爲沒有配置選擇(「消息」安全有「algorithmSuite」配置參數,但它不可用於「運輸「安全)WCF netTcpBinding Windows安全加密和簽名

謝謝

回答

4

NetTcpBinding類使用TCP進行消息傳輸。傳輸模式的安全性通過TCP實現傳輸層安全性(TLS)來提供。 TLS實現由操作系統提供。

您還可以通過將TcpTransportSecurity類的ClientCredentialType屬性設置爲其中一個TcpClientCredentialType值來指定客戶端的憑證類型,如下面的代碼所示。

C#

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

更多信息可以在這裏找到:http://msdn.microsoft.com/en-us/library/ms729700

希望有所幫助。