Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSInternalServer.LoadMyCertsFromFile

function LoadMyCertsFromFile(AFileName: TFileName): Boolean;
Loads a single DER/CER/CRT certificate, or a PKCS#7 (.p7b/.p7c) bundle, into MyCerts - i.e. this component's own identity, as opposed to LoadRootCertsFromFile/LoadTrustedCertsFromFile which populate the trust stores. Typically used to add a server's (or client's, for mTLS) leaf certificate when the matching private key is supplied separately (e.g. via PrivateKeyRing) rather than bundled in a PFX.