Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmX509TrustedCertificates.ExportChainToTLS

procedure ExportChainToTLS(var Certificate: PTLSHandshake; var Len: Integer; EndIndex: Integer); overload;
Builds the TLS Certificate handshake message for the chain ending at EndIndex (root included per IncludeRootInTLSChain). Internal TLS plumbing that supplies the local endpoint's certificate list during a handshake; apps configure which cert is sent via the store, not by calling this directly.
function ExportChainToTLS(var Certificate: PTLSHandshake; var Len: Integer; var Cert: iCertificate; CertTypes: TCertificateTypes; Issuers: TX501Names): Boolean; overload;
Selects a local certificate matching the peer's CertificateRequest (accepted CertTypes and Issuers) and encodes its chain as a TLS Certificate message, returning the chosen leaf in Cert. Internal TLS client-auth / server-cert selection plumbing keyed off the negotiated parameters.