TcpTransportSecurity.SslProtocols Eigenschaft

Definition

Gibt die Liste der SSL/TLS-Protokolle an, die bei Verwendung eines Clientanmeldeinformationstyps von TcpClientCredentialType.Certificate ausgehandelt werden sollen. Der Wert kann eine Kombination aus einem der folgenden Enumerationsmember sein: 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

Eigenschaftswert

Gibt SslProtocols zurück.

Beispiele

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");

Hinweise

Der Standardwert ist Ssl3 | Tls | Tls11 | Tls12. Versionen des Frameworks vor 4.6 unterstützen nur Ssl3 und Tls. Wenn diese nicht enthalten sind, ist die Kommunikation mit früheren Versionen des Frameworks nicht möglich. Wenn Sie Tls11 und/oder Tls12 angeben, wird die Verwendung von Ssl3 deaktiviert, auch wenn es enthalten ist.

Gilt für: