methodTsmX509TrustedCertificates.ExportChainToCMS
procedure ExportChainToCMS(var ContentInfo: iContentInfo; EndIndex: Integer; Sort: Boolean; IncludeRoot: Boolean; NoSyntaxCheck: Boolean = False);
Serializes just the chain from the certificate at EndIndex up through its issuers (following FindCACert), plus the relevant CRLs, into a CMS SignedData. IncludeRoot decides whether the self-signed root is emitted. Use to hand a peer exactly the path needed to validate one leaf, rather than the whole store.