Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Mobile.CertificateReload

Feature notes: TLS implementation notes (RFC map) · PKIX / CMS implementation notes · Certificate reload from PFX files on disk

Classes, interfaces and records

classeCertificateReload

inherits from ETLSInternalServer

(no public members)

classeCertificateReloadRead

inherits from eCertificateReload

(no public members)

classtCertificateReloadFile

destructor Destroy; override; property Path: string read fPath; property CurrentCertificate: iCertificate read fCertificate; property AcceptedFingerprint: string read fFingerprint;

classtCertificateReloader

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;
aCurrentCert and aCurrentContent describe what the targets were started from: content seeds the digest, so an unchanged file is not applied again, and names the leaf when aCurrentCert is nil, so the first replacement retires it. Full description »
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;

Types (enumerations, sets, aliases)

enumtCertificateReloadLogKind

  tCertificateReloadLogKind = (crlkAccepted, crlkRejected,
    crlkRecovered, crlkWarning, crlkDebug);

proctCertificateReloadLogEvent

  tCertificateReloadLogEvent = procedure(Sender: TObject;
    aKind: tCertificateReloadLogKind; const aPath, aMessage: string)
    of object;

arraytCertificateReloadLeaves

  tCertificateReloadLeaves = array of iCertificate;