TcpTransportSecurity.SslProtocols プロパティ

定義

TcpClientCredentialType.Certificate のクライアント資格情報の種類を使用するときの、ネゴシエートする SSL/TLS プロトコルの一覧を指定します。 値には、次の列挙体メンバーの 1 つ以上の組み合わせを指定できます: Ssl3、Tls、Tls11、Tls12。

public:
 property System::Security::Authentication::SslProtocols SslProtocols { System::Security::Authentication::SslProtocols get(); void set(System::Security::Authentication::SslProtocols value); };
public System.Security.Authentication.SslProtocols SslProtocols { get; set; }
member this.SslProtocols : System.Security.Authentication.SslProtocols with get, set
Public Property SslProtocols As SslProtocols

プロパティ値

SslProtocols を返します。

NetTcpBinding b = new NetTcpBinding();  
b.Security.Mode = SecurityMode.Transport;  
b.Security.Transport.ClientCredentialType = TcpClientCredentialType.Certificate;  
b.Security.Transport.SslProtocols = SslProtocols.Tls11 | SslProtocols.Tls12;  
EndpointAddress a = new EndpointAddress("net.tcp://contoso.com/TcpAddress");  
ChannelFactory<ICalculator> cf = new ChannelFactory<ICalculator>(b, a);  
cf.Credentials.ClientCertificate.SetCertificate(  
    StoreLocation.LocalMachine,  
    StoreName.My,  
    X509FindType.FindByThumbprint,  
    "0000000000000000000000000000000000000000");  

注釈

既定値は Ssl3 |Tls |Tls11 |Tls12。 4.6 より前のバージョンのフレームワークでは、Ssl3 と Tls のみがサポートされています。 これらが含まれていない場合、以前のバージョンのフレームワークとの通信は不可能です。 Tls11 または Tls12 を指定すると、Ssl3 が含まれている場合でも、Ssl3 の使用が無効になります。

適用対象