Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

EncodeCertificate13

function EncodeCertificate13(const aContext, aLeafDER: tBytes): tBytes; overload;
TLS 1.3 Certificate message (RFC 8446 sec.4.4.2) for a single leaf cert (no chain): certificate_request_context<0..255> || CertificateEntry list<0..2^24>, entry = cert_data<1..2^24> || extensions<0..2^16>. aLeafDER empty => empty certificate_list (the client has no suitable cert). The 3-arg overload attaches aLeafExtensions (a raw extensions blob, e.g. a stapled status_request) to the leaf CertificateEntry.
function EncodeCertificate13(const aContext, aLeafDER, aLeafExtensions: tBytes): tBytes; overload;