EncodeCertificate13FromList12
function EncodeCertificate13FromList12(const aContext, aList12, aLeafExtensions: tBytes): tBytes;
Re-wraps a pre-encoded TLS 1.2 certificate_list (a sequence of uint24-length- prefixed DER certs, leaf first - as cut out of a cached TLS 1.2 Certificate handshake message) as a TLS 1.3 Certificate message, so the wire chain keeps the intermediate CA certs the TLS 1.2 encoder already resolved (incl. its IncludeRootInTLSChain policy). aLeafExtensions (e.g. a stapled status_request) goes into the first CertificateEntry only; the other entries get empty extensions. Returns nil when aList12 is empty or not a well-formed entry sequence, so callers can fall back to encoding the bare leaf.