Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmStreamSecII.FindCreatePrivateKeyTLS

function FindCreatePrivateKeyTLS(KEA: TKeyExchangeAlgorithm; SignAlg: TSignatureAlgorithm; Version: TProtocolVersion; const ALPN: OctetString; Cert: iCertificate): iMPPrivateKey; overload;
Internal server-side wiring: given the negotiated key-exchange / signature algorithm, protocol version, ALPN and a chosen leaf certificate, returns the matching private key from the server cert cache (or the key ring). Apps rarely call this directly - it is invoked by the handshake driver to sign / decrypt during a server handshake. This overload takes the classic (TLS 1.0-1.2) signature-algorithm index.
function FindCreatePrivateKeyTLS(KEA: TKeyExchangeAlgorithm; SignAlg: TSignatureAlgorithm13; Version: TProtocolVersion; const ALPN: OctetString; Cert: iCertificate): iMPPrivateKey; overload;
TLS 1.3 (NEW): the same lookup keyed on the extended signature-algorithm index, so the 1.3 server path can fetch EdDSA / ML-DSA private keys.