From 72a237dcf257f6897a1d09329aefc4a901485c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Mon, 18 Nov 2024 16:00:48 +0800 Subject: [PATCH 1/2] Set the default value of SslProtocol to SslProtocols.None. --- .../MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs b/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs index 135e012d6..d0ae7cce5 100644 --- a/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs +++ b/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs @@ -22,7 +22,7 @@ public MqttServerTlsTcpEndpointOptions() public bool CheckCertificateRevocation { get; set; } - public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12; + public SslProtocols SslProtocol { get; set; } = SslProtocols.None; public System.Net.Security.CipherSuitesPolicy CipherSuitesPolicy { get; set; } } From 8b6e0c13751984a58a63f22962b6dbc397f56092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Sat, 30 Nov 2024 21:29:40 +0800 Subject: [PATCH 2/2] Add summary of SslProtocol. --- .../MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs b/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs index d0ae7cce5..fb8a1b02c 100644 --- a/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs +++ b/Source/MQTTnet.Server/Options/MqttServerTlsTcpEndpointOptions.cs @@ -22,6 +22,10 @@ public MqttServerTlsTcpEndpointOptions() public bool CheckCertificateRevocation { get; set; } + /// + /// The default value is SslProtocols.None, which allows the operating system to choose the best protocol to use, and to block protocols that are not secure. + /// + /// SslProtocols public SslProtocols SslProtocol { get; set; } = SslProtocols.None; public System.Net.Security.CipherSuitesPolicy CipherSuitesPolicy { get; set; }