Editar

Partilhar via


TcpTransportSecurityElement.SslProtocols Property

Definition

Gets the list of SSL/TLS protocols to negotiate when using a client credential type of TcpClientCredentialType.Certificate. The value can be a combination of one of more of the following enumeration members: Ssl3, Tls, Tls11, Tls12.

public:
 property System::Security::Authentication::SslProtocols SslProtocols { System::Security::Authentication::SslProtocols get(); };
[System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Default | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)]
public System.Security.Authentication.SslProtocols SslProtocols { get; }
[System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Tls | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)]
public System.Security.Authentication.SslProtocols SslProtocols { get; }
[<System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Default | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)>]
member this.SslProtocols : System.Security.Authentication.SslProtocols
[<System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=System.Security.Authentication.SslProtocols.Tls | System.Security.Authentication.SslProtocols.Tls11 | System.Security.Authentication.SslProtocols.Tls12)>]
member this.SslProtocols : System.Security.Authentication.SslProtocols
Public ReadOnly Property SslProtocols As SslProtocols

Property Value

The list of SSL/TLS protocols.

Attributes

Remarks

The default value is Ssl3 | Tls | Tls11 | Tls12. Versions of the framework prior to 4.6 only support Ssl3 and Tls. If these are not included, communication with earlier versions of the framework will not be possible. Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.

Applies to