diff options
author | 2017-01-21 09:05:31 +0000 | |
---|---|---|
committer | 2017-01-21 09:05:31 +0000 | |
commit | b73162d5b5d2245c5d1acca23c7fc58b250cddce (patch) | |
tree | 9658ab8bd4e95bf6d7b62bc5e7787e7aa8de2fdc | |
parent | add option 'domain full chain certificate "path"', (diff) | |
download | wireguard-openbsd-b73162d5b5d2245c5d1acca23c7fc58b250cddce.tar.xz wireguard-openbsd-b73162d5b5d2245c5d1acca23c7fc58b250cddce.zip |
Improve Documentation
ok florian
-rw-r--r-- | usr.sbin/acme-client/acme-client.1 | 48 | ||||
-rw-r--r-- | usr.sbin/acme-client/acme-client.conf.5 | 8 |
2 files changed, 30 insertions, 26 deletions
diff --git a/usr.sbin/acme-client/acme-client.1 b/usr.sbin/acme-client/acme-client.1 index 4652bbaf8a2..27296e07b5e 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.17 2017/01/21 08:57:05 benno Exp $ +.\" $OpenBSD: acme-client.1,v 1.18 2017/01/21 09:05:31 benno Exp $ .\" .\" Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> .\" @@ -52,26 +52,28 @@ No operation, check and print configuration. The domain name. .El .Pp -Public certificates are by default placed in -.Pa /etc/ssl/acme -as -.Pa cert.pem Pq the domain certificate , -.Pa chain.pem , -and -.Pa fullchain.pem , -respectively. -.Pa cert.pem -is checked for its expiration: if more than 30 days from expiry, .Nm -does not attempt to refresh the signature. +looks in its configuration for a +.Ar domain +section corresponding to the domain given as command line argument. +It then uses that configuration to retrieve a TLS certificate. +If the certificate already exists and is less than 30 days from expiry, +.Nm +will attempt to refresh the signature. +Before a certificate can be requested, an account key needs to be +created using the +.Fl A +argument. +The first time a certificate is requested, the RSA key needs to be created with +.Fl D . .Pp -Challenges are used to verify that the submitter has access to -the registered domains. +Challenges are used to verify that the submitter has access to the +registered domains. .Nm only implements the .Dq http-01 -challenge type, where a file is created within a directory accessible by -a locally-run web server. +challenge type, where a file is created within a directory accessible +by a locally-run web server. The default challenge directory .Pa /var/www/acme can be served by @@ -85,13 +87,9 @@ location "/.well-known/acme-challenge/*" { } .Ed .Sh FILES -.Bl -tag -width "/etc/ssl/acme/private/privkey.pem" -compact -.It Pa /etc/acme/privkey.pem -Default accountkey. -.It Pa /etc/ssl/acme -Default certdir. -.It Pa /etc/ssl/acme/private/privkey.pem -Default domainkey. +.Bl -tag -width "/etc/acme-client.conf" -compact +.It Pa /etc/acme-client.conf +Default configuration. .It Pa /var/www/acme Default challengedir. .El @@ -106,7 +104,7 @@ as in the .Sx Challenges section: .Pp -.Dl # acme-client -vNn www.foo.com +.Dl # acme-client -vN www.example.com .Pp A daily .Xr cron 8 @@ -114,7 +112,7 @@ job can renew the certificates: .Bd -literal -offset indent #! /bin/sh -acme-client www.foo.com +acme-client www.example.com if [ $? -eq 0 ] then diff --git a/usr.sbin/acme-client/acme-client.conf.5 b/usr.sbin/acme-client/acme-client.conf.5 index d992a6fec96..6a0728e66cc 100644 --- a/usr.sbin/acme-client/acme-client.conf.5 +++ b/usr.sbin/acme-client/acme-client.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acme-client.conf.5,v 1.6 2017/01/21 09:00:29 benno Exp $ +.\" $OpenBSD: acme-client.conf.5,v 1.7 2017/01/21 09:05:31 benno Exp $ .\" .\" Copyright (c) 2005 Esben Norby <norby@openbsd.org> .\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -124,8 +124,14 @@ The private key file for which the certificate will be obtained. The filename of the certificate that will be issued. .It Ic domain chain certificate Ar file The filename in which to store the certificate chain that will be returned by the CA. +It needs to be in the same directory as the +.Ar domain certificate +(or in a subdirectory) and can be specified as a relative or absolute path. .It Ic domain full chain certificate Ar file The filename in which to store the full certificate chain that will be returned by the CA. +It needs to be in the same directory as the +.Ar domain certificate +(or in a subdirectory) and can be specified as a relative or absolute path. .It Ic sign with Ar authority The certificate authority (as declared above in the .Sx AUTHORITIES |