mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
30 lines
829 B
C#
30 lines
829 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Security;
|
|
using System.Security.Authentication;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace MQTTnet.Client
|
|
{
|
|
public class MqttClientOptionsBuilderTlsParameters
|
|
{
|
|
public bool UseTls { get; set; }
|
|
|
|
public Func<X509Certificate, X509Chain, SslPolicyErrors, IMqttClientOptions, bool> CertificateValidationCallback
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public SslProtocols SslProtocol { get; set; } = SslProtocols.Tls12;
|
|
|
|
public IEnumerable<IEnumerable<byte>> Certificates { get; set; }
|
|
|
|
public bool AllowUntrustedCertificates { get; set; }
|
|
|
|
public bool IgnoreCertificateChainErrors { get; set; }
|
|
|
|
public bool IgnoreCertificateRevocationErrors { get; set; }
|
|
}
|
|
}
|