17 lines
470 B
C#
17 lines
470 B
C#
using System.Security.Cryptography.X509Certificates;
|
|
using YamlDotNet.Serialization;
|
|
|
|
namespace DearFTP.Configurations
|
|
{
|
|
class TlsConfiguration
|
|
{
|
|
public bool AllowTls { get; set; } = false;
|
|
public bool ForceTls { get; set; } = false;
|
|
public string CertificatePath { get; set; } = "";
|
|
public string PrivateKeyPath { get; set; } = "";
|
|
|
|
[YamlIgnore()]
|
|
public X509Certificate2 X509Certificate { get; set; }
|
|
}
|
|
}
|