]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: acme: generate a temporary key pair
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 5 Nov 2025 17:44:22 +0000 (18:44 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 6 Nov 2025 10:56:27 +0000 (11:56 +0100)
commit546c67d137c8712750715061ceb8a09aa10b4f21
tree39b0d838d23a4ad5d200e54e5c806447189f85d8
parent1df55b441bc105b4c281d366f4608a1f9cb27903
MINOR: acme: generate a temporary key pair

This patch provides two functions acme_gen_tmp_pkey() and
acme_gen_tmp_x509().

These functions generates a unique keypair and X509 certificate that
will be stored in tmp_x509 and tmp_pkey. If the key pair or certificate
was already generated they will return the existing one.

The key is an RSA2048 and the X509 is generated with a expiration in the
past. The CN is "expired".

These are just placeholders to be used if we don't have files.
include/haproxy/acme.h
src/acme.c