namespace ZB.MOM.WW.LmxProxy.Client;
///
/// TLS configuration for the LmxProxy gRPC client.
///
public class ClientTlsConfiguration
{
/// Whether to use TLS for the gRPC connection.
public bool UseTls { get; set; } = false;
/// Path to the client certificate PEM file for mTLS.
public string? ClientCertificatePath { get; set; }
/// Path to the client private key PEM file for mTLS.
public string? ClientKeyPath { get; set; }
/// Path to the server CA certificate PEM file for custom trust.
public string? ServerCaCertificatePath { get; set; }
/// Override the server name used for TLS verification.
public string? ServerNameOverride { get; set; }
/// Whether to validate the server certificate.
public bool ValidateServerCertificate { get; set; } = true;
/// Whether to allow self-signed certificates.
public bool AllowSelfSignedCertificates { get; set; } = false;
/// Whether to ignore all certificate errors (dangerous).
public bool IgnoreAllCertificateErrors { get; set; } = false;
}