Skip to content

Commit

Permalink
Set the default value of SslProtocol to SslProtocols.None. (#2106)
Browse files Browse the repository at this point in the history
* Set the default value of SslProtocol to SslProtocols.None.

* Add summary of SslProtocol.
  • Loading branch information
xljiulang authored Dec 1, 2024
1 parent bdb7464 commit 7d40279
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ public MqttServerTlsTcpEndpointOptions()

public bool CheckCertificateRevocation { get; set; }

public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
/// <summary>
/// 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.
/// </summary>
/// <seealso href="https://learn.microsoft.com/en-us/dotnet/api/system.security.authentication.sslprotocols">SslProtocols</seealso>
public SslProtocols SslProtocol { get; set; } = SslProtocols.None;

public System.Net.Security.CipherSuitesPolicy CipherSuitesPolicy { get; set; }
}
Expand Down

0 comments on commit 7d40279

Please sign in to comment.