methodTstCustomCertificateManager.ImportFromCMS
function ImportFromCMS(var aContentInfo : iContentInfo; aExplicitTrust: Boolean; var aErrorMsg : string; var aErrorCodes : tPkixCertVerificationErrors; aAllowExpired : Boolean = False) : Boolean;
Import all certificates carried in a CMS SignedData structure into the manager, sorting them into chain order and filing each into the right store: own certs (private key present) go to "My", self-signed CAs to Root (only when aExplicitTrust), verified intermediates to Collected, and certs failing only because the issuer is untrusted/expired to Trusted (again only under aExplicitTrust). Use when receiving a bundle of certificates (e.g. a peer's chain) that you want to absorb into your stores. aExplicitTrust says the caller trusts this source enough to add roots/untrusted-issuer certs; aAllowExpired relaxes the expiry check. aErrorMsg/aErrorCodes report why certs were rejected.