summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acme-client/main.c
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2017-01-21 08:44:35 +0000
committerbenno <benno@openbsd.org>2017-01-21 08:44:35 +0000
commit2453e683be3ff3f89bf7f499869580fa120a059d (patch)
tree4f9d3f7dc29066ab5c69848e755a4ae43bdbc66a /usr.sbin/acme-client/main.c
parentacme-client use configuration file [2 of 5] (diff)
downloadwireguard-openbsd-2453e683be3ff3f89bf7f499869580fa120a059d.tar.xz
wireguard-openbsd-2453e683be3ff3f89bf7f499869580fa120a059d.zip
acme-client use configuration file [3 of 5]
change command line options: n -> A new Account key N -> D new Domain key With this acme-client has these main usage patterns: * create new Account Key and Domain Key and get a certificate: acme-client -A -D www.example.com * renew certificate: acme-client www.example.com * revoke certificate: acme-client -r www.example.com ok florian
Diffstat (limited to 'usr.sbin/acme-client/main.c')
-rw-r--r--usr.sbin/acme-client/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c
index 14f355a35b8..59202ecbac2 100644
--- a/usr.sbin/acme-client/main.c
+++ b/usr.sbin/acme-client/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.16 2017/01/21 08:43:09 benno Exp $ */
+/* $Id: main.c,v 1.17 2017/01/21 08:44:35 benno Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -66,10 +66,10 @@ main(int argc, char *argv[])
case 'F':
force = 1;
break;
- case 'n':
+ case 'A':
popts |= ACME_OPT_NEWACCT;
break;
- case 'N':
+ case 'D':
popts |= ACME_OPT_NEWDKEY;
break;
case 'r':
@@ -399,6 +399,6 @@ main(int argc, char *argv[])
(2 == c ? EXIT_SUCCESS : 2));
usage:
fprintf(stderr,
- "usage: acme-client [-bFnNrv] [-f file] domain\n");
+ "usage: acme-client [-bFADrv] [-f file] domain\n");
return (EXIT_FAILURE);
}