Set the default value of SslProtocol to SslProtocols.None. (#2106)

* Set the default value of SslProtocol to SslProtocols.None.

* Add summary of SslProtocol.
This commit is contained in:
老九
2024-12-01 14:06:19 +01:00
committed by GitHub
parent bdb74642c2
commit 7d4027958c
@@ -22,7 +22,11 @@ namespace MQTTnet.Server
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; }
}