summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2017-01-21 08:44:36 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2017-01-21 08:44:36 +0000
commitb4df22940669e66b0e5edeb51afad4e3f76d0d52 (patch)
tree979d64717fcaf9270d22c9a850a32e611818b83f /usr.sbin
parent117df0c4e1baff9e2325395c9a32b210cf8ce2d4 (diff)
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')
-rw-r--r--usr.sbin/acme-client/acme-client.16
-rw-r--r--usr.sbin/acme-client/main.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/acme-client/acme-client.1 b/usr.sbin/acme-client/acme-client.1
index 489ee2f30a9..e12656203d3 100644
--- a/usr.sbin/acme-client/acme-client.1
+++ b/usr.sbin/acme-client/acme-client.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: acme-client.1,v 1.13 2017/01/21 08:43:09 benno Exp $
+.\" $OpenBSD: acme-client.1,v 1.14 2017/01/21 08:44:35 benno Exp $
.\"
.\" Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -52,9 +52,9 @@ If there are no certificates in place, this option does nothing.
Force updating the certificate signature even if it's too soon.
.It Fl f Ar configfile
Specify an alternative configuration file.
-.It Fl N
+.It Fl D
Create a new RSA domain key if one does not already exist.
-.It Fl n
+.It Fl A
Create a new RSA account key if one does not already exist.
.It Fl r
Revoke the X509 certificate found in the certificates.
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);
}