]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: ssl: support SCTL with AWS-LC
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 22 Oct 2026 15:12:18 +0000 (15:12 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 28 Oct 2026 13:55:51 +0000 (14:55 +0100)
commit67e01b4a90dc0c9d63d70126d8221ebafbe5a87c
tree1c9af8e2b9153ec866eae4cf62015361ff798e0a
parent895762235366484e000cc4a93e7f32a556019978
BUG/MEDIUM: ssl: support SCTL with AWS-LC

AWS-LC owns extension 18 and rejects server custom extension registration.
The previous commit skips that registration, leaving .sctl files ignored.

Use SSL_CTX_set_signed_cert_timestamp_list(), available in all AWS-LC
releases, to set the serialized SCT list. AWS-LC copies the list and handles
context switches. Enable HAVE_SSL_SCTL for AWS-LC despite its missing
SN_ct_cert_scts OID.

AWS-LC also validates the list. Report a rejected list as a warning and omit
the extension, allowing the certificate to remain usable.

Tested with AWS-LC 4.2.0 and 3.0.0: TLS 1.2 sends the exact SCT payload for
the selected certificate with a sidecar and omits it for another certificate
on the same bind.

This must be backported to 3.0, the first version supporting AWS-LC.
include/haproxy/openssl-compat.h
src/ssl_sock.c