]> git.kaiwu.me - haproxy.git/commitdiff
EXAMPLES: ssl: keylog entries are greater than 1024
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 14:24:28 +0000 (16:24 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 14:24:28 +0000 (16:24 +0200)
Adjust the log size to 2048, the default 1024 bytes of a log line are
too small since f28dd15 ("MINOR: ssl: add TLS 1.2 values in
HAPROXY_KEYLOG_XX_LOG_FMT")

examples/keylog-test.cfg

index 0e615d0ad3ccdcff8b15d209fd399c432fe375c3..54e47174359ff488e465637e36eaf23275108364 100644 (file)
@@ -29,13 +29,13 @@ global
 ring keylog-fc
     description "TLS session key frontend log"
     format raw
-    maxlen 2000
+    maxlen 2048
     size 1M
 
 ring keylog-bc
     description "TLS session key backend log"
     format raw
-    maxlen 2000
+    maxlen 2048
     size 1M
 
 
@@ -60,8 +60,8 @@ frontend https-in
     log /dev/log format raw local0
 
     # TLS session keys written to the ring buffer
-    log ring@keylog-fc profile keylog-fc local1
-    log ring@keylog-bc profile keylog-bc local1
+    log ring@keylog-fc len 2048 profile keylog-fc local1
+    log ring@keylog-bc len 2048 profile keylog-bc local1
 
     default_backend be1