私は簡単な質問がありますが、どこでも答えを見つけることができません。 私はWCF-Server-Applicationを持っています。私はTLS1.2だけを使用したい。TLS 1.2 serverside WCF以外のものを制限する
私はクライアントを制御できず、マシンのSCHANNEL設定を編集できません。
私はすでに動作しているよう次のことをしようとしなかった唯一の発信接続(クライアント側)用
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
コードあたりTLS 1.2サーバーサイド以外のものを制限する方法はありますか?
EDIT:そのような 私はバインディングnet.tcpを使用して作成していますバインディング:
private static Binding CreateNetTcpBinding()
{
return new NetTcpBinding
{
ReceiveTimeout = TimeSpan.FromMinutes(10),
ReliableSession =
{
Enabled = true,
InactivityTimeout = TimeSpan.FromMinutes(1)
},
Security =
{
Mode = SecurityMode.Transport,
Transport =
{
ClientCredentialType = TcpClientCredentialType.Windows,
ProtectionLevel = ProtectionLevel.EncryptAndSign,
SslProtocols = SslProtocols.Tls12
},
Message =
{
AlgorithmSuite = SecurityAlgorithmSuite.xxx <-- not here on purpose,
ClientCredentialType = MessageCredentialType.Windows
}
}
};
}
誰かがどこ現在の接続のTLS-バージョン(一部のコンテキスト)を確認するために私に言うことができる場合だろうまた十分です!
ありがとうございます!
私は良いWCF質問につまずいたので、しばらくしてきました! – iamkrillin
あなたの問題が[.NET Framework 4.7](https://msdn.microsoft.com/en-us/library/ms171868(v = vs.110).aspx#v47)で解決されているように見えます - **設定機能既定のメッセージセキュリティ設定をTLS 1.1またはTLS 1.2 ** –