]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ssl: Add local passphrase cache
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 28 Oct 2025 17:00:46 +0000 (18:00 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 29 Oct 2025 09:54:17 +0000 (10:54 +0100)
commit5a036d223b1a5dcd32b36e68307d6e9dfeb5a871
tree078fb8e787dff5162e73e6fd1389e53ea1e58a8e
parent478dd7bad0be11fa21be23aa13a8398dce174a3f
MEDIUM: ssl: Add local passphrase cache

Instead of calling the external password command for all loaded
encrypted certificates, we will keep a local password cache.
The passwords won't be stored as plain text, they will be stored
obfuscated into the password cache. The obfuscation is simply based on a
XOR'ing with a random number built during init.
After init is performed, the password cache is overwritten and freed so
that no dangling info allowing to dump the passwords remains.
src/ssl_ckch.c
src/ssl_sock.c