]> git.kaiwu.me - haproxy.git/commit
MINOR: ssl: add the ssl_fc_crtname sample fetch
authorWilliam Lallemand <wlallemand@irq6.net>
Thu, 2 Apr 2026 21:34:50 +0000 (23:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 3 Apr 2026 08:41:00 +0000 (10:41 +0200)
commitd89ae36adcdf7fbbb2281ac40a318aa6d30aa821
tree9e009d1321e8103ecd877d0f0d8d66f630860ad2
parentefb1ab57bea888491c31b0c534a0e1d96823c5da
MINOR: ssl: add the ssl_fc_crtname sample fetch

This new sample fetch returns the name of the certificate selected for
an incoming SSL/TLS connection, as it would appear in "show ssl cert".
It may be a filename with its relative or absolute path, or an alias,
depending on how the certificate was declared in the configuration.

The certificate name is stored as ex_data on the SSL_CTX at load time
in ckch_inst_new_load_store(), and freed via a dedicated free callback.
doc/configuration.txt
include/haproxy/ssl_sock.h
src/ssl_sample.c
src/ssl_sock.c