微软自己的官网介绍 SSL 参数相关

https://docs.microsoft.com/en-us/dotnet/api/system.security.authentication.sslprotocols?redirectedfrom=MSDN&view=netframework-4.0

 

SslProtocols Enum

Definition

Defines the possible versions of SslProtocols.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

C#Copy
[System.Flags]
public enum SslProtocols
Inheritance
SslProtocols
Attributes

Fields 

Default240

Use None instead of DefaultDefault permits only the Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 protocols to be negotiated, and those options are now considered obsolete. Consequently, Default is not allowed in many organizations. Despite the name of this field, SslStream does not use it as a default except under special circumstances.

None0

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.

Ssl212

Specifies the SSL 2.0 protocol. SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only.

Ssl348

Specifies the SSL 3.0 protocol. SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only.

Tls192

Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246.

Applies to

.NET Core
2.1, 2.0, 1.1, 1.0
.NET Framework
4.7.2, 4.7.1, 4.7, 4.6.2, 4.6.1, 4.6, 4.5.2, 4.5.1, 4.5, 4.0, 3.5, 3.0, 2.0
.NET Standard
2.0, 1.6, 1.4, 1.3
Xamarin.Android
7.1
Xamarin.iOS
10.8
Xamarin.Mac
3.0

转载于:https://www.cnblogs.com/jinanxiaolaohu/p/9677787.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值