aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-10-18 17:47:29 +0000
committerOmar Polo <op@omarpolo.com>2023-10-18 17:47:29 +0000
commitadaae5163ca666bda00116a9efebcf0b1e6a8194 (patch)
tree007171910bcfb2a55fd43adf34730a5e0f86c4ba /ge.c
parent43b38b2dbbefbb68d9eff1d0fb76238308700f1b (diff)
rework gencert(); make gemexp generate EC certs
Taking inspiration from acme-client.
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ge.c b/ge.c
index 6cede75..d2148c6 100644
--- a/ge.c
+++ b/ge.c
@@ -100,7 +100,7 @@ load_local_cert(struct vhost *h, const char *hostname, const char *dir)
fatal("asprintf");
if (access(cert, R_OK) == -1 || access(key, R_OK) == -1)
- gen_certificate(hostname, cert, key);
+ gencert(hostname, cert, key, 1);
h->cert = tls_load_file(cert, &h->certlen, NULL);
if (h->cert == NULL)