SslStreamSecurityElement.SslProtocols 属性
定义
指定使用 TcpClientCredentialType.Certificate 的客户端凭据类型时要协商的 SSL/TLS 协议的列表。Specifies the list of SSL/TLS protocols to negotiate when using a client credential type of TcpClientCredentialType.Certificate. 此值可以是一个或多个下列枚举成员的组合:Ssl3、Tls、Tls11、Tls12。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=Mono.Cecil.CustomAttributeArgument)]
public System.Security.Authentication.SslProtocols SslProtocols { get; }
[<System.Configuration.ConfigurationProperty("sslProtocols", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.SslProtocols : System.Security.Authentication.SslProtocols
Public ReadOnly Property SslProtocols As SslProtocols
属性值
返回 SslProtocols。Returns SslProtocols.
- 属性
注解
默认值为 Ssl3 | Tls | Tls11 | Tls12。The default value is Ssl3 | Tls | Tls11 | Tls12. 4.6 之前的版本的 framework 只支持 Ssl3 和 Tls。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. 指定 Tls11 和/或 Tls12 将禁用 Ssl3 的使用情况,即使已包含它也是如此。Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.