diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-06-12 11:09:26 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-06-12 11:09:26 +0000 |
commit | 586f634fab1170bdb318c3f7055fdd0cc94222a7 (patch) | |
tree | c1919d8086e1d5770f8297e619938e2202c2133e /usr.sbin/acme-client/main.c | |
parent | c689f5f82e4105fe8733cec4b4905a1609eff328 (diff) |
use acme-client to sign certificated with ecdsa keys
diff from Renaud Allard <renaud@allard.it>, ok to get in from florian@
Diffstat (limited to 'usr.sbin/acme-client/main.c')
-rw-r--r-- | usr.sbin/acme-client/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c index 1bbecd3d989..ea8f7c5d348 100644 --- a/usr.sbin/acme-client/main.c +++ b/usr.sbin/acme-client/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.47 2019/06/08 07:52:55 florian Exp $ */ +/* $Id: main.c,v 1.48 2019/06/12 11:09:25 gilles Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -49,6 +49,7 @@ main(int argc, char *argv[]) int popts = 0; pid_t pids[COMP__MAX]; extern int verbose; + extern int ecdsa; extern enum comp proccomp; size_t i, altsz, ne; @@ -147,6 +148,10 @@ main(int argc, char *argv[]) errx(EXIT_FAILURE, "authority %s not found", auth); } + if (domain->keytype == 1) { + ecdsa = 1; + } + acctkey = authority->account; if ((chngdir = domain->challengedir) == NULL) |