methodTsmAsyncTLSServer.AddCertificate
function AddCertificate(const aCert: iCertificate; aExplicitTrust: Boolean; var aStatus: TCertStatusCode; aAllowExpired: Boolean = False; aAllowDuplicateKeyIdentifier: Boolean = False): Boolean;
Configuration belongs in OnConfigureEngine, which the component calls once per shard. These are the operations an application needs AFTER activation, when that handler has long returned - the only reason it would otherwise have to keep its own list of the engines. NOT atomic across shards: during the fan-out some shards are new and some are old. Each shard flips atomically under its own TLSLock. The one component-level lock is the bank lock, which only keeps the shard list alive: activation and Deactivate hold it while they build or free the shards, and ReplaceTLSServerCertificate and a certificate reload while they walk them. It is taken before TLSLock -> store FLock -> FOcspLock and never by a reactor thread, so it cannot invert that order; do not call ReplaceTLSServerCertificate from a session callback, which Deactivate waits for. Store the private key on every shard first, then add the leaf and chain, then call ReplaceTLSServerCertificate. Chain CAs use each shard's LocalExplicitTrustByDefault (AddLocalCertificate).