methodTsmStreamSecII.ReplaceTLSServerCertificate
procedure ReplaceTLSServerCertificate(const aCert: iCertificate; const aPriv: iMPPrivateKey); overload;
Use this method for replacing a server certificate assigned by TLSSetupServer, without having to close the server and reload all keys and certificates from file.
procedure ReplaceTLSServerCertificate(const aCert: iCertificate; const aPriv: iMPPrivateKey; const aRetired: array of iCertificate); overload;
As above, and every leaf in aRetired is retired: the serving cache drops every row that holds it, so it is no longer selected for a host name or key type the new leaf does not cover, TLSSetupServer does not serve it again and ValidatePublicKeyPairs no longer counts its key type. The stores keep it until the component is set up from scratch. nil entries, and the new leaf itself, retire nothing; the new leaf is served again if an earlier replacement had retired it.