mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 19:13:11 +08:00
27 lines
749 B
C#
27 lines
749 B
C#
using System.Net.Security;
|
|
using System.Security.Authentication;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttServerTlsTcpEndpointOptions : MqttServerTcpEndpointBaseOptions
|
|
{
|
|
public MqttServerTlsTcpEndpointOptions()
|
|
{
|
|
Port = 8883;
|
|
}
|
|
|
|
public byte[] Certificate { get; set; }
|
|
|
|
public IMqttServerCertificateCredentials CertificateCredentials { get; set; }
|
|
|
|
public bool ClientCertificateRequired { get; set; }
|
|
|
|
public bool CheckCertificateRevocation { get; set; }
|
|
|
|
#if !WINDOWS_UWP
|
|
public RemoteCertificateValidationCallback RemoteCertificateValidationCallback { get; set; }
|
|
#endif
|
|
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
|
|
}
|
|
}
|