mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 03:32:40 +02:00
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.
13 lines
311 B
C
13 lines
311 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#ifndef _ACME_H_
|
|
#define _ACME_H_
|
|
|
|
#include <haproxy/ssl_ckch-t.h>
|
|
|
|
int ckch_conf_acme_init(void *value, char *buf, struct ckch_store *s, int cli, const char *filename, int linenum, char **err);
|
|
EVP_PKEY *acme_gen_tmp_pkey();
|
|
X509 *acme_gen_tmp_x509();
|
|
|
|
|
|
#endif
|