Debian Codegraph @

lacme-accountd.1.md

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 % lacme-accountd(1)
2 % [Guilhem Moulin](mailto:[email protected])
3 % March 2016
4
5 Name
6 ====
7
8 lacme-accountd - [ACME] client written with process isolation and
9 minimal privileges in mind (account key manager)
10
11 Synopsis
12 ========
13
14 `lacme-accountd` [`--config=FILENAME`] [`--privkey=ARG`] [`--socket=PATH`] [`--quiet`]
15
16 Description
17 ===========
18
19 `lacme-accountd` is the account key manager component of [`lacme`(8)], a
20 small [ACME] client written with process isolation and minimal
21 privileges in mind. No other [`lacme`(8)] component needs access to the
22 account key; in fact the account key could as well be stored on another
23 host or a smartcard.
24
25 `lacme-accountd` binds to a UNIX-domain socket (specified with
26 `--socket=`), which [ACME] clients can connect to in order to request
27 data signatures.
28 As a consequence, `lacme-accountd` needs to be up and running before
29 using [`lacme`(8)] to issue [ACME] commands. Also, the process does not
30 automatically terminate after the last signature request: instead, one
31 sends an `INT` or `TERM` [`signal`(7)] to bring the server down.
32
33 Furthermore, one can use the UNIX-domain socket forwarding facility of
34 [OpenSSH] 6.7 and later to run `lacme-accountd` and [`lacme`(8)] on
35 different hosts. For instance one could store the account key on a
36 machine that is not exposed to the internet. See the
37 **[examples](#examples)** section below.
38
39 Options
40 =======
41
42 `--config=`*filename*
43
44 : Use *filename* as configuration file instead of
45 `%E/lacme/lacme-accountd.conf`. The value is subject to
46 [%-specifier expansion](#percent-specifiers). `lacme-accountd`
47 fails when `--config=` is used with a non-existent file, but a
48 non-existent default location is treated as if it were an empty
49 file.
50
51 See the **[configuration file](#configuration-file)** section below
52 for the configuration options.
53
54 `--privkey=`*value*
55
56 : Specify the (private) account key to use for signing requests.
57 Currently supported *value*s are:
58
59 * `file:`*FILE*, for a private key in PEM format (optionally
60 symmetrically encrypted)
61 * `gpg:`*FILE*, for a [`gpg`(1)]-encrypted private key
62
63 *FILE* is subject to [%-specifier expansion](#percent-specifiers).
64
65 The [`genpkey`(1ssl)] command can be used to generate a new private
66 (account) key:
67
68 $ install -vm0600 /dev/null /path/to/account.key
69 $ openssl genpkey -algorithm RSA -out /path/to/account.key
70
71 Currently `lacme-accountd` only supports RSA account keys.
72
73 `--socket=`*path*
74
75 : Use *path* as the UNIX-domain socket to bind to for signature
76 requests from the [ACME] client. The value is subject to
77 [%-specifier expansion](#percent-specifiers). `lacme-accountd`
78 aborts if *path* exists or if its parent directory is writable by
79 other users.
80 Default: `%t/S.lacme` (omitting `--socket=` therefore yields an
81 error when `lacme-accountd` doesn't run as and the `XDG_RUNTIME_DIR`
82 environment variable is unset or empty).
83
84 `--stdio`
85
86 : Read signature requests from the standard input and write signatures
87 to the standard output, instead of using a UNIX-domain socket for
88 communication with the [ACME] client.
89 This _internal_ flag should never be used by standalone
90 `lacme-accountd` instances, only for those [`lacme`(8)] spawns.
91
92 `-h`, `--help`
93
94 : Display a brief help and exit.
95
96 `-q`, `--quiet`
97
98 : Be quiet.
99
100 `--debug`
101
102 : Turn on debug mode.
103
104 Configuration file
105 ==================
106
107 When given on the command line, the `--privkey=`, `--socket=` and
108 `--quiet` options take precedence over their counterpart (without
109 leading `--`) in the configuration file. Valid settings are:
110
111 *privkey*
112
113 : See `--privkey=`. This setting is required when `--privkey=` is not
114 specified on the command line.
115
116 *gpg*
117
118 : For a [`gpg`(1)]-encrypted private account key, specify the binary
119 [`gpg`(1)] to use, as well as some default options.
120 Default: `gpg --quiet`.
121
122 *socket*
123
124 : See `--socket=`.
125
126 *logfile*
127
128 : An optional file where to log to. The value is subject to
129 [%-specifier expansion](#percent-specifiers).
130
131 *keyid*
132
133 : The "Key ID", as shown by `` `acme account` ``, to give the [ACME]
134 client. With an empty *keyid* (the default) the client forwards the
135 JSON Web Key (JWK) to the [ACME] server to retrieve the correct
136 value. A non-empty value therefore saves a round-trip.
137
138 A non-empty value also causes `lacme-accountd` to send an empty JWK,
139 thereby revoking all account management access (status change,
140 contact address updates etc.) from the client: any `` `acme account` ``
141 command (or any command from [`lacme`(8)] before version 0.8.0) is
142 bound to be rejected by the [ACME] server. This provides a
143 safeguard against malicious clients.
144
145 *quiet*
146
147 : Be quiet. Possible values: `Yes`/`No`.
148
149 %-specifiers {#percent-specifiers}
150 ============
151
152 The value the `--config=`, `--privkey=` and `--socket=` CLI options (and
153 also the *privkey*, *socket* and *logfile* settings from the
154 configuration file) are subject to %-expansion for the following
155 specifiers.
156
157 ---- ------------------------------------------------------------------
158 `%C` `@@localstatedir@@/cache` for the root user, and `$XDG_CACHE_HOME`
159 for other users (or `$HOME/.cache` if the `XDG_CACHE_HOME`
160 environment variable is unset or empty).
161
162 `%E` `@@sysconfdir@@` for the root user, and `$XDG_CONFIG_HOME` for
163 other users (or `$HOME/.config` if the `XDG_CONFIG_HOME`
164 environment variable is unset or empty).
165
166 `%g` Current group name.
167
168 `%G` Current group ID.
169
170 `%h` Home directory of the current user.
171
172 `%t` `@@runstatedir@@` for the root user, and `$XDG_RUNTIME_DIR` for
173 other users. Non-root users may only use `%t` when the
174 `XDG_RUNTIME_DIR` environment variable is set to a non-empty
175 value.
176
177 `%T` `$TMPDIR`, or `/tmp` if the `TMPDIR` environment variable is unset
178 or empty.
179
180 `%u` Current user name.
181
182 `%U` Current user ID.
183
184 `%%` A literal `%`.
185 ---- ------------------------------------------------------------------
186
187 Examples
188 ========
189
190 Run `lacme-accountd` in a first terminal:
191
192 $ lacme-accountd --privkey=file:/path/to/account.key --socket=$XDG_RUNTIME_DIR/S.lacme
193
194 Then, while `lacme-accountd` is running, execute locally [`lacme`(8)] in
195 another terminal:
196
197 $ sudo lacme --socket=$XDG_RUNTIME_DIR/S.lacme newOrder
198
199 Alternatively, use [OpenSSH] 6.7 or later to forward the socket and
200 execute [`lacme`(8)] remotely:
201
202 $ ssh -oExitOnForwardFailure=yes -tt -R /path/to/remote.sock:$XDG_RUNTIME_DIR/S.lacme [email protected] \
203 sudo lacme --socket=/path/to/remote.sock newOrder
204
205 Consult the [`lacme`(8) manual][`lacme`(8)] for a solution involving
206 connecting to `lacme-accountd` on a dedicated remote host. Doing so
207 enables automatic renewal via [`crontab`(5)] or [`systemd.timer`(5)].
208
209 See also
210 ========
211
212 [`lacme`(8)], [`ssh`(1)]
213
214 [ACME]: https://tools.ietf.org/html/rfc8555
215 [`lacme`(8)]: lacme.8.html
216 [`signal`(7)]: https://linux.die.net/man/7/signal
217 [`gpg`(1)]: https://www.gnupg.org/documentation/manpage.en.html
218 [OpenSSH]: https://www.openssh.com/
219 [`ssh`(1)]: https://man.openbsd.org/ssh
220 [`genpkey`(1ssl)]: https://www.openssl.org/docs/manmaster/man1/openssl-genpkey.html
221 [`crontab`(5)]: https://linux.die.net/man/5/crontab
222 [`systemd.timer`(5)]: https://www.freedesktop.org/software/systemd/man/systemd.timer.html