Feature notes: TLS implementation notes (RFC map) · PKIX / CMS implementation notes · Certificate reload from PFX files on disk
inherits from ETLSInternalServer
(no public members)
inherits from eCertificateReload
(no public members)
destructor Destroy; override;
property Path: string read fPath;
property CurrentCertificate: iCertificate read fCertificate;
property AcceptedFingerprint: string read fFingerprint;
Configure targets, files and host names while stopped. The application imports its startup PFX files and calls TLSSetupServer before Start. Components must outlive Stop and Free. Each file applies to every target. LogCallback is serialized. CheckOnce logs on its caller; polling logs on the worker. Stop warnings call LogCallback on the stopping thread when its lock is free, otherwise use the native diagnostic channel. FatalCallback has a separate observer and may overlap LogCallback. Callbacks must not call Stop. Stop interrupts polling and joins the worker. A deadline overrun logs and returns with Running true; retain dependencies until a later Stop joins. Destroy waits for a remaining worker to preserve its dependencies.
constructor Create;
procedure AddTarget(aServer: TsmCustomTLSInternalServer); overload;
procedure AddTarget(aServer: TsmAsyncTLSServer); overload;
destructor Destroy; override;
function AddFile(const aPath, aPassword: string; const aCurrentCert: iCertificate = nil; const aCurrentContent: TBytes = nil): tCertificateReloadFile;
procedure CheckOnce;
procedure Start;
procedure Stop;
property FatalCallback: tWorkerFatalEvent read fFatalCallback write SetFatalCallback;
property HostNames: TStrings read GetHostNames;
property PollIntervalMs: Cardinal read fPollIntervalMs write SetPollIntervalMs;
property Running: Boolean read GetRunning;
property LogCallback: tCertificateReloadLogEvent read fLogCallback write SetLogCallback;