SslProtocols 枚举
定义
定义 SslProtocols 的可能版本。Defines the possible versions of SslProtocols.
此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。
public enum class SslProtocols
[System.Flags]
public enum SslProtocols
[<System.Flags>]
type SslProtocols =
Public Enum SslProtocols
- 继承
- 属性
字段
| Default | 240 | 请使用 |
| None | 0 | 允许操作系统选择要使用的最佳协议,并将其用于阻止不安全的协议。Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. 应使用此字段,除非应用有特定原因不得使用此字段。Unless your app has a specific reason not to, you should use this field. |
| Ssl2 | 12 | 指定 SSL 2.0 协议。Specifies the SSL 2.0 protocol. SSL 2.0 已由 TLS 协议取代,之所以仍然提供这个方法,只是为了向后兼容。SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only. |
| Ssl3 | 48 | 指定 SSL 3.0 协议。Specifies the SSL 3.0 protocol. SSL 3.0 已由 TLS 协议取代,之所以仍然提供这个方法,只是为了向后兼容。SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only. |
| Tls | 192 | 指定 TLS 1.0 安全协议。Specifies the TLS 1.0 security protocol. TLS 1.0 只是为了后向兼容性而提供。TLS 1.0 is provided for backward compatibility only. TLS 协议在 IETF RFC 2246 中定义。The TLS protocol is defined in IETF RFC 2246. |
| Tls11 | 768 | 指定 TLS 1.1 安全协议。Specifies the TLS 1.1 security protocol. TLS 协议在 IETF RFC 4346 中定义。The TLS protocol is defined in IETF RFC 4346. |
| Tls12 | 3072 | 指定 TLS 1.2 安全协议。Specifies the TLS 1.2 security protocol. TLS 协议在 IETF RFC 5246 中定义。The TLS protocol is defined in IETF RFC 5246. |
| Tls13 | 12288 | 指定 TLS 1.3 安全协议。Specifies the TLS 1.3 security protocol. 此 TLS 协议在 IETF RFC 8446 定义。The TLS protocol is defined in IETF RFC 8446. |
注解
在握手期间,客户端将发送 SSL 版本的列表,服务器将从该列表中选择最匹配的版本。During the handshake, the client sends a list of SSL versions and the server chooses the best matching version from that list.